You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our use case for koa-logger doesn't allow for color codes in the output. We're currently using the strip-ansi module to strip those out, however it would be preferable if we could simply disable colored output in the logger options.
ie, something like this:
const logger = require('koa-logger')
const Koa = require('koa')
const app = new Koa()
var loggerTransport = function () { ... }
var loggerConfig = { colorOutput: false }
app.use(logger(loggerTransport, loggerConfig))
Has this been considered? It seems like it would be fairly straightforward to implement. I can submit a PR if the maintainers are open to the idea.
The text was updated successfully, but these errors were encountered:
Our use case for koa-logger doesn't allow for color codes in the output. We're currently using the
strip-ansi
module to strip those out, however it would be preferable if we could simply disable colored output in the logger options.ie, something like this:
Has this been considered? It seems like it would be fairly straightforward to implement. I can submit a PR if the maintainers are open to the idea.
The text was updated successfully, but these errors were encountered: