package
1.6.7
Repository: https://github.com/fragmenta/mux.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Add adds the given logger to the list of outputs, it should be called before logging commences.
AddTag adds a tag field to this.
AddValuesLog adds the given logger to the list of ValuesLoggers, it should be called before logging commences.
NewFile creates a new file logger for the given path.
NewStdErr returns a new PrintLogger which outputs to stderr.
Printf prints to the printLogs.
Timef prints the time elapsed since start plus any message to the PrintLog to log time taken by a function, call at start with defer log.Timef(start,...).
Values values to the valueLogs which typically emit stats to a time series database.
ValuesBatch sends an array of values to the valueLogs which typically emit stats to a time series database.

# Constants

Color constants used for writing in colored output.
Color constants used for writing in colored output.
Color constants used for writing in colored output.
Use this to clear output.
Color constants used for writing in colored output.
FileFlags serts the flags for OpenFile on the log file.
FilePermissions serts the perms for OpenFile on the log file.
KeyNameTime specifies a key used to define the time value for a given key the Value should be a time.Time value.
PrefixDate constant for date prefixes.
PrefixDateTime constants for date + time prefix.
PrefixTime constants for time prefix.
SeriesName specifies the key used to define which bucket/table to send values to thius is used by adapters to extract the table name from values supplied.
TagPrefix for a key name allows adding a tag instead of a field to influx.

# Structs

Default defines a default logger to stdout.
File logs to a local file as well as stdout.
StatsLog conforms to the ValuesLogger interface It simply outputs the values to stdout, rather than logging to a specific service see the adapters folder for ValueLoggers which connect to time series databases.

# Interfaces

PrintLogger defines an interface for logging to a text log.
ValuesLogger defines an interface for logging to a stats service.