| 
									
										
										
										
											2021-05-20 08:55:18 +02:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-29 16:27:35 +02:00
										 |  |  | const { transports } = require('winston'); | 
					
						
							| 
									
										
										
										
											2022-03-02 05:29:18 +01:00
										 |  |  | const { LEVEL_LABEL, LEVELS } = require('./constants'); | 
					
						
							| 
									
										
										
										
											2021-05-20 08:55:18 +02:00
										 |  |  | const { prettyPrint } = require('./formats'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const createDefaultConfiguration = () => { | 
					
						
							|  |  |  |   return { | 
					
						
							| 
									
										
										
										
											2022-03-02 05:29:18 +01:00
										 |  |  |     level: LEVEL_LABEL, | 
					
						
							| 
									
										
										
										
											2021-05-20 08:55:18 +02:00
										 |  |  |     levels: LEVELS, | 
					
						
							| 
									
										
										
										
											2021-06-29 16:27:35 +02:00
										 |  |  |     format: prettyPrint(), | 
					
						
							| 
									
										
										
										
											2022-03-02 05:29:18 +01:00
										 |  |  |     transports: [new transports.Console()], | 
					
						
							| 
									
										
										
										
											2021-05-20 08:55:18 +02:00
										 |  |  |   }; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = createDefaultConfiguration; |