Documentation ¶ Index ¶ Constants func CreateWriter(w interface{}) (io.Writer, error) func SetWriter(w interface{}) error Constants ¶ View Source const ( // LogFileFlags are suitable for appending to a log file LogFileFlags = os.O_CREATE | os.O_APPEND | os.O_RDWR // LogFileMode is suitable for root-only log access LogFileMode = 0600 ) Variables ¶ This section is empty. Functions ¶ func CreateWriter ¶ func CreateWriter(w interface{}) (io.Writer, error) CreateWriter is a convenience function to ensure that the given input results in an io.Writer func SetWriter ¶ func SetWriter(w interface{}) error SetWriter sets up the writer for non-interactive logging libraries Types ¶ This section is empty. Source Files ¶ View all Source files logging.go Directories ¶ Show internal Expand all Path Synopsis alert applog audit debug examples external Click to show internal directories. Click to hide internal directories.