feat(logging): added loging filters

This commit is contained in:
Torkel Ödegaard
2016-06-07 12:11:41 +02:00
parent 3dc7706c45
commit a02cf5beb7
6 changed files with 73 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ type MigrationLog struct {
func NewMigrator(engine *xorm.Engine) *Migrator {
mg := &Migrator{}
mg.x = engine
mg.Logger = log.New("Migrator")
mg.Logger = log.New("migrator")
mg.migrations = make([]Migration, 0)
mg.dialect = NewDialect(mg.x.DriverName())
return mg