'golang tabwriter inside echologger

I use in my golang-echo project this logger and in his configuration I want to use tabwriter as io.Writer tool (in order to align output in it) but I don't want to call Flush every time I send log message. What is the possible solution? The goal is to align output of default echo log

Example of my implementation

e.Use(echoMDW.LoggerWithConfig(echoMDW.LoggerConfig{
    Format: "METHOD=${method};\t PATH=${uri};\t STATUS=${status};\t TIME:${time_rfc3339};\n",
    Output: tabwriter.NewWriter(os.Stdout, 0, 40, 0, '\t', 0),
}))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source