Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

idea: configuration file to enable/disable the logging #6

Open
rutesantos4 opened this issue Jan 3, 2023 · 1 comment
Open

idea: configuration file to enable/disable the logging #6

rutesantos4 opened this issue Jan 3, 2023 · 1 comment

Comments

@rutesantos4
Copy link
Member

The main idea is to implement something like log4net/log4j, where the logging is configured using a file.

@freitzzz
Copy link
Member

freitzzz commented Jan 4, 2023

logging configuration by file is a great idea but there should also be a function that configures logging by parameters. something like this:

type AspiradorConfig struct {
...
}

func NewAspirador(fp string) Aspirador {}
func NewAspirador(ac AspiradorConfig) Aspirador {}

*not sure about the names, the codesnippet is just to illustrate an idea

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants