mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
created logger.ts
moved the added stream part directly into the config of morgan in app.ts. Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
bb8297dca3
commit
637833ab18
2 changed files with 7 additions and 9 deletions
|
@ -56,7 +56,11 @@ if (config.useSSL) {
|
|||
|
||||
// logger
|
||||
app.use(morgan('combined', {
|
||||
'stream': logger.stream
|
||||
stream: {
|
||||
write: function (message): void {
|
||||
logger.info(message)
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
||||
// socket io
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue