Skip to content
Snippets Groups Projects
Commit abce62e3 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

docs(server): add logger to readme

parent a3dfd2b0
No related branches found
No related tags found
1 merge request!3feat(server): export logger
......@@ -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`.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment