Documentation
¶
Index ¶
Constants ¶
View Source
const LOG_DIR_PERM = 0750
View Source
const LOG_FILE_NAME = "corn.jsonl"
View Source
const LOG_FILE_PERM = 0640
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalLogger ¶
type Logger ¶
type Logger struct {
L InternalLogger
LogsDir string
IsDev bool
// contains filtered or unexported fields
}
func (*Logger) NewJobLogger ¶
creates a logger for a job, returns the logger, close function and error the close function should be used (probably deferred) to close the job file stream IMPORTANT: the close function might be null if there is an error
Click to show internal directories.
Click to hide internal directories.