mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-05 21:01:40 +03:00
style: -
delimited date in logs
This commit is contained in:
parent
8ac7c65a2d
commit
c393a066ab
@ -23,7 +23,7 @@ module.exports = config => {
|
|||||||
const transports = [
|
const transports = [
|
||||||
new ConsoleTransport({
|
new ConsoleTransport({
|
||||||
format: log => {
|
format: log => {
|
||||||
const timestamp = dtf.fill('YYYY/MM/DD HH:mm:ss', log.timestamp);
|
const timestamp = dtf.fill('YYYY-MM-DD HH:mm:ss', log.timestamp);
|
||||||
const colour = colours[log.level.name];
|
const colour = colours[log.level.name];
|
||||||
return format(
|
return format(
|
||||||
short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`),
|
short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`),
|
||||||
@ -45,7 +45,7 @@ module.exports = config => {
|
|||||||
format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}',
|
format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}',
|
||||||
level: config.logs.level,
|
level: config.logs.level,
|
||||||
name: 'Discord Tickets by eartharoid',
|
name: 'Discord Tickets by eartharoid',
|
||||||
timestamp: 'YYYY/MM/DD HH:mm:ss',
|
timestamp: 'YYYY-MM-DD HH:mm:ss',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user