feat(xo-server): make log transport configurable

See zammad#9799
This commit is contained in:
Julien Fontanet
2022-10-05 17:22:25 +02:00
parent 61c64b49c7
commit 756d2fe4e7

View File

@@ -10,8 +10,8 @@ export default class Logs {
app.hooks.on('clean', () => this._gc())
const transport = transportConsole()
app.config.watch('logs', ({ filter, level }) => {
const defaultTransport = transportConsole()
app.config.watch('logs', ({ filter, level, transport = defaultTransport }) => {
configure([
{
filter: [process.env.DEBUG, filter],