From abce62e32f349bdd00a8b44899c5e0f23845166c Mon Sep 17 00:00:00 2001 From: Yannis Barlas <yannisbarlas@gmail.com> Date: Thu, 28 May 2020 21:57:08 +0300 Subject: [PATCH] docs(server): add logger to readme --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c7b69e..89195ab 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ It is also meant to bundle as many server-side pubsweet dependencies as possible Install package and remove the dependencies it is meant to replace. ```sh -yarn remove pubsweet pubsweet-server # if migrating from an existing project +yarn remove pubsweet pubsweet-server @pubsweet/logger # if migrating from an existing project yarn add @coko/server ``` @@ -36,6 +36,14 @@ If you place this file in `server/app.js`, starting the server should work autom } ``` +### Logger + +To access the logger simply import like so: + +```js +const { logger } = require('@coko/server') +``` + ### Authorization middleware The server provides authorization checks through using `graphql-shield`. -- GitLab