Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LoggerSpecEnvVar is the environment variable that controls what kind of logger we // want. If the value is "file" we will only log to file. If the value is "both", we // log to console and file. If the value is "console" we log to console only. // "container" LoggerSpecEnvVar = "GG_LOGGER" // LogDirEnvVar is the environment variable that controls which directory logging // will take place in. If this is unset we do not log to file.make LogDirEnvVar = "GG_LOG_DIR" // LogFileSizeEnvVar specifies max log file size in megabytes LogFileSizeEnvVar = "GG_LOG_FILE_SIZE_MB" // LogFileMaxAgeEnvVar is the maximum number of days we will keep log files around. LogFileMaxAgeEnvVar = "GG_LOG_FILE_MAX_AGE_DAYS" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter writes logs to the filesystem.
func NewFileWriter ¶
func NewFileWriter(c FileWriterConfig) *FileWriter
NewFileWriter creates a new FileWriter given a FileWriterConfig
Click to show internal directories.
Click to hide internal directories.