Documentation ¶
Index ¶
- Constants
- Variables
- func Critical(message string, fields ...Fields)
- func Debug(message string, fields ...Fields)
- func Error(message string, fields ...Fields)
- func GetLevel() string
- func Info(message string, fields ...Fields)
- func InitSeelog()
- func SetLevel(driverLogLevel, instanceLogLevel string)
- func Trace(message string, fields ...Fields)
- func Warn(message string, fields ...Fields)
- type Fields
- type StructuredLogger
Constants ¶
View Source
const ( LOGLEVEL_ENV_VAR = "ECS_LOGLEVEL" LOGLEVEL_ON_INSTANCE_ENV_VAR = "ECS_LOGLEVEL_ON_INSTANCE" LOGFILE_ENV_VAR = "ECS_LOGFILE" LOG_DRIVER_ENV_VAR = "ECS_LOG_DRIVER" LOG_ROLLOVER_TYPE_ENV_VAR = "ECS_LOG_ROLLOVER_TYPE" LOG_OUTPUT_FORMAT_ENV_VAR = "ECS_LOG_OUTPUT_FORMAT" LOG_MAX_FILE_SIZE_ENV_VAR = "ECS_LOG_MAX_FILE_SIZE_MB" LOG_MAX_ROLL_COUNT_ENV_VAR = "ECS_LOG_MAX_ROLL_COUNT" DEFAULT_LOGLEVEL = "info" DEFAULT_LOGLEVEL_WHEN_DRIVER_SET = "off" DEFAULT_ROLLOVER_TYPE = "date" DEFAULT_OUTPUT_FORMAT = logFmt DEFAULT_MAX_FILE_SIZE float64 = 10 DEFAULT_MAX_ROLL_COUNT int = 24 )
Variables ¶
View Source
var Config *logConfig
Functions ¶
func InitSeelog ¶ added in v1.47.0
func InitSeelog()
Types ¶
type StructuredLogger ¶ added in v1.50.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.