| 
									
										
										
										
											2024-02-04 18:19:19 -06:00
										 |  |  | package config | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type Config struct { | 
					
						
							| 
									
										
										
										
											2024-03-07 21:19:45 -06:00
										 |  |  | 	Input      Input | 
					
						
							|  |  |  | 	Outputs    Outputs `toml:"output"` | 
					
						
							|  |  |  | 	Formatters Formatters | 
					
						
							| 
									
										
										
										
											2024-02-04 18:19:19 -06:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type Input struct { | 
					
						
							| 
									
										
										
										
											2024-02-26 19:30:32 -06:00
										 |  |  | 	Path      string `env:"LOG_PATH"` | 
					
						
							|  |  |  | 	Recurse   bool   `env:"LOG_RECURSE"` | 
					
						
							|  |  |  | 	Ext       string `env:"LOG_EXT"` | 
					
						
							|  |  |  | 	DotFolder bool   `env:"LOG_DOT_FOLDER"` | 
					
						
							| 
									
										
										
										
											2024-02-04 18:19:19 -06:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-09 09:44:35 -06:00
										 |  |  | type Outputs map[string]Output | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-04 18:19:19 -06:00
										 |  |  | type Output struct { | 
					
						
							|  |  |  | 	Enabled bool | 
					
						
							|  |  |  | 	Config  map[string]any | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2024-02-09 09:44:35 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | type Stdout struct { | 
					
						
							| 
									
										
										
										
											2024-03-10 21:08:34 -05:00
										 |  |  | 	Format string `env:"LOG_STDOUT_FORMAT" mapstructure:"format"` | 
					
						
							| 
									
										
										
										
											2024-02-10 11:48:23 -06:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type stdoutEnabled struct { | 
					
						
							|  |  |  | 	Enabled bool `env:"LOG_STDOUT_ENABLED"` | 
					
						
							| 
									
										
										
										
											2024-02-09 09:44:35 -06:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2024-03-07 21:19:45 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | type Formatters map[string]map[string]any | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type JsonFormat struct { | 
					
						
							|  |  |  | 	PrettyPrint bool `env:"LOG_JSON_PRETTY_PRINT" mapstructure:"pretty_print"` | 
					
						
							|  |  |  | } |