# README
Logger
Logger adds the option to write colored output
# Functions
CapturePanic runs any function that returns an error in a panic-controlled environment and converts any panic (if any) into an error.
Debug is a shorthand for logger.DefaultLogger.Debug, see Logger interface method description for any information.
Fatal creates a fatal log via the DefaultLogger and calls os.Exit(1).
Fatald creates a fatal log via the DefaultLogger and calls os.Exit(1).
IndentString takes a string and indents every line with the provided number of single spaces.
LogsLevelMatch returns the logs that match one of the severity levels provided.
LogsMatch returns the logs that match every tag provided.
LogsMatchAny returns the logs that match at least one of the tag provided.
LogsToJSON converts a slice of logs in JSON format.
LogsToJSON converts a slice of logs in JSON format with the provided indentation length in spaces, not tabs.
NewLogger creates a logger that keeps in memory the most recent logs and saves everything in files divided in clusters.
NewLogger creates a standard logger, which saves the logs only in memory.
PanicToErr is the same as PanicToErr but returns a plain error.
Print is a shorthand for logger.DefaultLogger.Print, see Logger interface method description for any information.
Printf is a shorthand for logger.DefaultLogger.Printf, see Logger interface method description for any information.
RemoveTerminalColors strips every terminal color provided from this package from a string.
ToTerminal tests if out is a terminal window or not.
# Constants
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
This colors can be used to customize the output.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This colors can be used to customize the output.
# Variables
DefaultLogger is the Logger used by the function in this package (like logger.Print, logger.Debug, ecc) and is initialized as a standard logger (logs are saved only in memory).
LogChunkSize determines both the numbers of logs kept in memory and the number of logs saved in each file.
LogFileExtension can be used to change the file extenstion of the log files.
LogFileTimeFormat is the format that is used to create the log files for the HugeLogger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TimeFormat defines which timestamp to use with the logs.
# Structs
No description provided by the author
Log holds every information.
PanicError is used by the functions CapturePanic and PanicToErr to capture any function returning an error and any generated panic.
# Interfaces
Logger handles the logging.
# Type aliases
LogLevel defines the severity of a Log.