Skip to content

Instantly share code, notes, and snippets.

@gitawego
Created January 31, 2022 13:37
Show Gist options
  • Save gitawego/79a80d0d4ab5c9e39d15cab5dae555e6 to your computer and use it in GitHub Desktop.
Save gitawego/79a80d0d4ab5c9e39d15cab5dae555e6 to your computer and use it in GitHub Desktop.
{
appenders: {
access: {
type: 'dateFile',
filename: 'log/access.log',
pattern: '-yyyy-MM-dd',
category: 'http',
},
app: {
type: 'file',
filename: 'log/app.log',
layout: {
type: 'pattern',
pattern: '[%d] %p %c (%f{2}:%l) %m%n',
},
maxLogSize: 10485760,
numBackups: 3,
},
stdout: {
type: 'stdout',
layout: {
type: 'pattern',
pattern: '%[ [%d] %p %c (%f{2}:%l) %m%n %]',
},
},
errorFile: {
type: 'file',
filename: 'log/errors.log',
},
errors: {
type: 'logLevelFilter',
level: 'ERROR',
appender: 'errorFile',
layout: {
type: 'pattern',
pattern: '[%d] %p %c (%f:%l) %m%n',
},
},
},
categories: {
default: {
appenders: ['app', 'stdout', 'errors'],
level: 'DEBUG',
enableCallStack: true,
},
http: { appenders: ['access'], level: 'DEBUG' },
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment