mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
https://github.com/koajs/bunyan-logger#koabunyanloggertimecontextopts > koaBunyanLogger.timeContext(opts) > Adds time(label) and timeEnd(label) methods to the koa context, which records the time between the time() and timeEnd() calls for a given label. > > Calls to time() and timeEnd() can be nested or interleaved as long as they're balanced for each label. > > Options: > > logLevel: name of log level to use; defaults to 'trace' > updateLogFields: function which will be called with arguments (fields) in koa context; can update fields or return a new object. |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| koa-bunyan-logger-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||