Fixed log errors and improved tests

This commit is contained in:
2017-06-21 20:33:57 +02:00
parent 28f58bcadc
commit 745b6f18e3
3 changed files with 65 additions and 58 deletions

View File

@ -13,10 +13,10 @@ import (
// Log middleware logs every request into logs/request.log and errors into logs/error.log.
func Log() aero.Middleware {
request := log.NewLog()
request := log.New()
request.AddOutput(log.File("logs/request.log"))
err := log.NewLog()
err := log.New()
err.AddOutput(log.File("logs/error.log"))
err.AddOutput(os.Stderr)