In the on-line documentation I read the instructions on customizing Logging behavior
As far as I understood it is enough to do
e.Logger.SetOutput(io.Writer) to set custom destination for the entire log output.
Echo#Logger.SetOutput(io.Writer) can be used to set the output destination for the logger. Default value is os.Stdout
However I found my self to have to do:
//for default logging middleware.DefaultLoggerConfig.Output = myOpenedFileForWriting // for my debugging e.Logger.SetOutput(myOpenedFileForWriting)
so both my logging messages set in my handlers as well as the default request logging messages to go to this file.
Is there a way to set them in one go and without having to reset