Created
January 31, 2022 13:37
-
-
Save gitawego/79a80d0d4ab5c9e39d15cab5dae555e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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