Closed markand closed 3 months ago
I am also annoyed by this
We are using log4js:
If they have that option we can look into adding it, researching that now
https://github.com/log4js-node/log4js-node/issues/112#issuecomment-13061075
Put this somewhere in your code before you start logging:
log4js.configure({ appenders: [ { type: "console", layout: { type: "basic" } } ], replaceConsole: true })
If we have to add that to every file that will be a pain
Here is another: https://github.com/log4js-node/log4js-node/issues/728#issuecomment-395644924
"console": { "type": "console", layout: { type: "basic" } }
that seems to go in a config file, but we do not have one... 🤔
Maybe this is the place:
Yes seems like that. Are you up for a pr for that. Maybe add an option to settings.json file?
Confirmed that is the place ... looking for a way to integrate with the settings
@SamTV12345 please take a look at the PR when you get a chance
name: Disable colors in logs about: Disable colors in logs title: 'Disable colors in logs' labels: enhancement
Is your feature request related to a problem? Please describe.
On FreeBSD I use
/usr/sbin/daemon
which redirects all output from stdout,stderr to syslog, it looks like etherpad (or the logging) module does not detect that the file descriptors are not tty and the ANSI escapde code persist so logs are full of them.Example:
Describe the solution you'd like
An option to disable coloring output entirely. I was unable to find one in the settings.json.template nor in the wiki documentation.