// NewDefaultLogger creates a new logger with a given LogLevel.
// All logs are written to Stderr and output is written to Stdout.
NewDefaultLogger creates a new logger with a given LogLevel.
All logs are written to Stderr and output is written to Stdout.
// NewDefaultLogger creates a new logger with a given LogLevel . // All logs are written to Stderr and output is written to Stdout .
func NewDefaultLogger(logLevel LevelType) *defaultLogger {
	logger := new(defaultLogger)
	logger.logLevel = logLevel
	logger.outputLog = log.New(os.Stdout, "", 0)
	logger.debugLog = log.New(os.Stderr, "[Debug] ", 0)
	logger.infoLog = log.New(os.Stderr, "[Info] ", 0)
	logger.warnLog = log.New(os.Stderr, "[Warn] ", 0)
	logger.errorLog = log.New(os.Stderr, "[Error] ", 0)
	return logger
}
func NewDefaultLogger ( logLevel LevelType ) * defaultLogger { logger := new ( defaultLogger ) logger . logLevel = logLevel logger . outputLog = log . New ( os . Stdout , " " , 0 ) logger . debugLog = log . New ( os . Stderr , " " , 0 ) logger . infoLog = log . New ( os . Stderr , " " , 0 ) logger . warnLog = log . New ( os . Stderr , " " , 0 ) logger . errorLog = log . New ( os . Stderr , " " , 0 ) return logger }
NewDefaultLogger creates a new logger with a given LogLevel.
NewDefaultLogger creates a new logger with a given LogLevel .