package main import ( "git.drinkme.beer/yinghe/log" ) func main() { spec := "@daily" log.RegisterRotationWithSpec(`./logs/cmd`, spec) log.RegisterRotation("./log/cmd") log.Infof("ping") log.Infof("pong") }