Versions in this module Expand all Collapse all v0 v0.2.0 Sep 11, 2017 Changes in this version + const COL_CALLER + const COL_DATE_YYMMDD + const COL_DATE_YYMMDD_HHMMSS + const COL_DATE_YYMMDD_HHMMSS_NANO + const COL_FILE + const COL_INSTANCE + const COL_LINE + const COL_MSG + const COL_MSG_TYPE_INT + const COL_MSG_TYPE_SHORT + const COL_MSG_TYPE_STR + const COL_SERVICE + const COL_TIMESTAMP + const OUT_FILE + const OUT_FILE_AND_STDOUT + const OUT_STDOUT + const ROT_ANNUALLY + const ROT_DAILY + const ROT_MONTHLY + const ROT_NONE + const ROT_WEEKLY + func ConnectToJournald(host string, port int, service, instance, token string, timeout time.Duration) (io.WriteCloser, error) + func ConnectToKafka(host string, port int, topic string) (io.WriteCloser, error) + type Code struct + Error bool + Type string + type Config struct + Columns []int64 + Compress bool + Filename string + Folder string + Headers bool + Instance string + JSON bool + Out int + Rotation int + Service string + type Logger struct + func New(config *Config) (*Logger, error) + func (l *Logger) AddDestination(name string, writer io.Writer) error + func (l *Logger) ListDestinations() []string + func (l *Logger) Log(caller string, code int, msg string, format ...interface{}) error + func (l *Logger) LogFields(caller string, code int, msg map[string]interface{}) error + func (l *Logger) NewCaller(caller string) func(int, string, ...interface{}) error + func (l *Logger) NewCallerWithFields(caller string) func(int, map[string]interface{}) error + func (l *Logger) Quit() + func (l *Logger) RawEntry(entry map[int64]string) error + func (l *Logger) RemoveDestination(name string) error + func (l *Logger) UseCustomCodes(codes map[int]Code) v0.1.2-alpha Sep 11, 2017 v0.1.1-alpha Sep 11, 2017 v0.1.0-alpha Sep 8, 2017