1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Serve audit logs to client

This commit is contained in:
Chocobozzz 2019-12-11 14:14:01 +01:00
parent 92e0f42e8c
commit 566c125d6e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 287 additions and 87 deletions

View file

@ -5,6 +5,7 @@ import * as winston from 'winston'
import { FileTransportOptions } from 'winston/lib/winston/transports'
import { CONFIG } from '../initializers/config'
import { omit } from 'lodash'
import { LOG_FILENAME } from '@server/initializers/constants'
const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT
@ -58,7 +59,7 @@ const labelFormatter = winston.format.label({
})
const fileLoggerOptions: FileTransportOptions = {
filename: path.join(CONFIG.STORAGE.LOG_DIR, 'peertube.log'),
filename: path.join(CONFIG.STORAGE.LOG_DIR, LOG_FILENAME),
handleExceptions: true,
format: winston.format.combine(
winston.format.timestamp(),