mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added colors
This commit is contained in:
parent
f7ae8bc46a
commit
9b9a67d8df
1 changed files with 8 additions and 8 deletions
|
@ -32,6 +32,14 @@ const locLogFile = './stats/logs'
|
|||
const logFile = '/nlogs/nlogs'
|
||||
const allLogFile = '/nlogs/log'
|
||||
|
||||
const colors = [
|
||||
'red',
|
||||
'green',
|
||||
'yellow',
|
||||
'blue',
|
||||
'cyan'
|
||||
]
|
||||
|
||||
function GetDateString () {
|
||||
const m = new Date()
|
||||
return m.getFullYear() + '/' +
|
||||
|
@ -83,14 +91,6 @@ function LogReq (req, toFile, sc) {
|
|||
}
|
||||
}
|
||||
|
||||
const colors = [
|
||||
'red',
|
||||
'green',
|
||||
'yellow',
|
||||
'blue',
|
||||
'cyan'
|
||||
]
|
||||
|
||||
function GetRandomColor (ip) {
|
||||
if (!ip) {
|
||||
return 'red'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue