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:
		@@ -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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user