Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
8984736c
Verified
Commit
8984736c
authored
Jun 19, 2021
by
les
Browse files
add console loggin in production
parent
8327db56
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/log.js
View file @
8984736c
...
...
@@ -27,9 +27,17 @@ const logger = createLogger({
createSymlink
:
true
,
zippedArchive
:
true
,
maxSize
:
'
10m
'
,
maxFiles
:
'
1
4
d
'
,
maxFiles
:
'
1
0
d
'
,
format
:
format
.
combine
(
format
.
timestamp
(),
format
.
splat
(),
gancioFormat
)
})]
}),
new
transports
.
Console
(
{
handleExceptions
:
true
,
handleRejections
:
true
,
level
:
config
.
log_level
||
'
info
'
,
format
:
format
.
combine
(
format
.
timestamp
(),
format
.
splat
(),
format
.
colorize
(),
gancioFormat
)
}
)]
})
module
.
exports
=
logger
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment