Log error/warn to stderr
This commit is contained in:
		
							parent
							
								
									cd469667cb
								
							
						
					
					
						commit
						3ce2352d1c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								app.js
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								app.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -102,7 +102,7 @@ if (isMaster) {
 | 
			
		|||
      debug: 4
 | 
			
		||||
    },
 | 
			
		||||
    transports: [
 | 
			
		||||
      new winston.transports.Console({ format: winston.format.colorize({ all: true }) }),
 | 
			
		||||
      new winston.transports.Console({ format: winston.format.colorize({ all: true }), stderrLevels: ["error", "warn"] }),
 | 
			
		||||
      new winston.transports.File({ filename: "logs/error.log", level: "error" }),
 | 
			
		||||
      new winston.transports.File({ filename: "logs/main.log" })
 | 
			
		||||
    ],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue