diff --git a/README.md b/README.md index 4c7b69eff313cc3d6746f6e8f9eb7cb4e22c9c0e..89195abb4d035b248f2bab509974950af745efe0 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`.