refactor: logging + search modules PH
This commit is contained in:
		
							
								
								
									
										22
									
								
								server/modules/logging/console/logger.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								server/modules/logging/console/logger.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| const winston = require('winston') | ||||
|  | ||||
| /* global WIKI */ | ||||
|  | ||||
| // ------------------------------------ | ||||
| // Console | ||||
| // ------------------------------------ | ||||
|  | ||||
| module.exports = { | ||||
|   key: 'console', | ||||
|   title: 'Console', | ||||
|   props: [], | ||||
|   init (logger, conf) { | ||||
|     logger.add(new winston.transports.Console({ | ||||
|       level: WIKI.config.logLevel, | ||||
|       prettyPrint: true, | ||||
|       colorize: true, | ||||
|       silent: false, | ||||
|       timestamp: true | ||||
|     })) | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user