// Clean the log-holder of inactive logs
// from a specified time
Clean the log-holder of inactive logs
from a specified time
// Clean the log - holder of inactive logs // from a specified time
func (s svc) Clean(from time.Time) {
	for name, holder := range s.Holder {
		if holder.lastUsed.After(from) {
			continue
		}
		holder.logger = nil
		holder.lumber.Close()
		holder.lumber = nil
		holder.file.Close()
		holder.file = nil
		delete(s.Holder, name)
	}
}
func ( s svc ) Clean ( from time . Time ) { for name , holder := range s . Holder { if holder . lastUsed . After ( from ) { continue } holder . logger = nil holder . lumber . Close ( ) holder . lumber = nil holder . file . Close ( ) holder . file = nil delete ( s . Holder , name ) } }
Clean the log-holder of inactive logs
from a specified time
Clean the log - holder of inactive logs from a specified time
// skip cleaning if the logger has been just after <from>