MCPcopy Index your code
hub / github.com/ether/etherpad / defaultLogConfig

Function defaultLogConfig

src/node/utils/Settings.ts:56–61  ·  view source on GitHub ↗
(level: string, layoutType: string)

Source from the content-addressed store, hash-verified

54// This is a function to make it easy to create a new instance. It is important to not reuse a
55// config object after passing it to log4js.configure() because that method mutates the object. :(
56const defaultLogConfig = (level: string, layoutType: string) => ({
57 appenders: {console: {type: 'console', layout: {type: layoutType}}},
58 categories: {
59 default: {appenders: ['console'], level},
60 }
61});
62const defaultLogLevel = 'INFO';
63const defaultLogLayoutType = 'colored';
64

Callers 2

Settings.tsFile · 0.85
reloadSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected