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:
parent
92e0f42e8c
commit
566c125d6e
18 changed files with 287 additions and 87 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue