// NewFileLogger creates a new FileLogger.
NewFileLogger creates a new FileLogger.
// NewFileLogger creates a new FileLogger .
func NewFileLogger(opt *Option) *FileLogger {
	logger := &FileLogger{
		path:     strings.TrimRight(opt.Path, "/"),
		filename: opt.Filename,
		daily:    opt.Daily,
	}
	if logger.daily {
		logger.date = today()
	}
	return logger
}
func NewFileLogger ( opt * Option ) * FileLogger { logger := & FileLogger { path : strings . TrimRight ( opt . Path , " " ) , filename : opt . Filename , daily : opt . Daily , } if logger . daily { logger . date = today ( ) } return logger }
NewFileLogger creates a new FileLogger.
NewFileLogger creates a new FileLogger .