package
1.0.1
Repository: https://github.com/lekovr/go-base.git
Documentation: pkg.go.dev

# README

Golang logger package

GoDoc

This is a proxy for github.com/Sirupsen/logrus with some additions like functional options and logging to file.

# Functions

Dest sets log destionation (STDERR if empty and file if given).
Disable turns logging off.
Level sets log level from a string value (debug/info/warn/error/fatal/panic).
New creates a logger object Configuration should be set via functional options.
TimeStamp adds timestamp in log output.

# Structs

Flags is a package flags sample in form ready for use with github.com/jessevdk/go-flags.
Log is a copy of logrus.Entry plus, when logging to file used, its filehandle.

# Type aliases

Fields type, used to pass to `WithFields`.