Categorygithub.com/johandry/log
modulepackage
0.0.0-20190918193429-2b13006dd125
Repository: https://github.com/johandry/log.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetPrefix return the prefix.
New creates a new Logger configured from an existing viper instance.
NewDefault creates a new Logger configured with defaults values or global viper values if they are defined.
NewEntryWithPrefix creates a new logrus.Entry with a prefix.
Prefix is an alias for NewEntryWithPrefix.
SetPrefix sets the output prefix for the standard logger.
StdLogger return the standar logger.

# Constants

OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
PrefixField is the viper variable to set and get the prefix to use in the text formatter.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.
OutputKey is the viper variable used to define the output FilenameKey is the viper variable used to define log filename LevelKey is the viper variable used to define log level key ForceColorsKey is the viper variable used to define if color should be forced DisableColorsKey is the viper variable used to define if the colors should be disabled DisableTimestampKey is the viper variable used to define if the log timestamp should be disabled ShortTimestampKey is the viper variable used to define the log timestamp short format TimestampFormatKey is the viper variable used to define the log timestamp format.

# Structs

Logger encapsulate logrus.Logger and add the prefix.
TextFormatter ...