Documentation ¶
Overview ¶
Package logging provides the configuration object for a StackDriver-integrated logger.
It supports loading the configuration values using envconfig.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Level string `envconfig:"LOGGING_LEVEL" default:"info"` // List of environment variables that should be included in all log // lines. EnvironmentVariables []string `envconfig:"LOGGING_ENVIRONMENT_VARIABLES"` // Send logs to StackDriver? SendToStackDriver bool `envconfig:"LOGGING_SEND_TO_STACKDRIVER"` // StackDriver error reporting options. When present, error logs are // going to be reported as errors on StackDriver. StackDriverErrorServiceName string `envconfig:"LOGGING_STACKDRIVER_ERROR_SERVICE_NAME"` StackDriverErrorLogName string `envconfig:"LOGGING_STACKDRIVER_ERROR_LOG_NAME" default:"error_log"` // When StackDriverCredentialsFile is set, the logger will use the // Google logging API to send the logs. Otherwise the fluentd Agent is // used. StackDriverCredentialsFile string `envconfig:"LOGGING_STACKDRIVER_CREDENTIALS_FILE"` }
Config contains configuration for logging level and services integration.
Click to show internal directories.
Click to hide internal directories.