Apache-style logger for echo
If you just want to see the access log in STDERR:
e.Use(apachelog.Logger(os.Stderr))
If you want to rotate logs and such, you will need to replace the destination, so you should keep the ApacheLog struct:
l := &ApacheLog{}
l.LogFormat = logformat.CombinedLog.Clone()
l.LogFormat.SetOutput(dst)
e.Use(l.Wrap)
// elsewhere in your code...
l.LogFormat.SetOutput(newLogDestination)
Or you can use go-file-rotatelogs
rl := rotatelogs.NewRotateLogs( ... )
e.Use(apachelog.Logger(rl))