Commit c96c3271 authored by Eirik Alvær's avatar Eirik Alvær

Update readme.

parent a5aae7f2
Pipeline #17146 failed with stage
in 12 seconds
......@@ -45,6 +45,7 @@ console.log(js.validate(logEvent, schema));
```
Example using the ExpressLogger:
```typescript
import Express = require("express");
import {ExpressLogger as Logger} from "@nsd/log-schema-node";
......@@ -78,5 +79,4 @@ Example using the ExpressLogger:
});
```
Currently this package only exposes the schema and the Typescript interface. In
the future it might also provide facilities for validation, etc.
By using the ExpressLogger middleware basic info about each request and response will be logged.
\ No newline at end of file
Markdown is supported
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