package
0.20.2
Repository: https://github.com/magoo/cmd.git
Documentation: pkg.go.dev

# Functions

Adds in a context called `caller` to the record (contains file name and line number like `foo.go:12`) Uses the `log15.CallerFileHandler` to perform this task.
Adds in a context called `caller` to the record (contains file name and line number like `foo.go:12`) Uses the `log15.CallerFuncHandler` to perform this task.
Filter handler, this is the only Uses the `log15.FilterHandler` to perform this task.
No description provided by the author
Get all handlers based on the Config (if available).
Filters out records which do not match the level Uses the `log15.FilterHandler` to perform this task.
If match then A handler is called otherwise B handler is called.
Filters out records which match the key value pair Uses the `log15.MatchFilterHandler` to perform this task.
Match all values in map to log.
Filters out records which do not match the level Uses the `log15.FilterHandler` to perform this task.
No description provided by the author
Create a new logger.
For logging purposes the call stack can be used to record the stack trace of a bad error simply pass it as a context field in your log statement like `controller.Log.Critc("This should not occur","stack",revel.NewCallStack())`.
No description provided by the author
No description provided by the author
Create a new log options.
No description provided by the author
The nil handler is used if logging for a specific request needs to be turned off.
Filters out records which match the level Uses the `log15.FilterHandler` to perform this task.
Filters out records which do not match the key value pair Uses the `log15.FilterHandler` to perform this task.
Match !(Match all values in map to log) The inverse of MatchMapHandler.
Set the systems default logger Default logs will be captured and handled by revel at level info.
Outputs the records to the passed in stream Uses the `log15.StreamHandler` to perform this task.
Outputs to the terminal in a format like below INFO 09:11:32 server-engine.go:169: Request Stats.

# Constants

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

# Variables

The log function map can be added to, so that you can specify your own logging mechanism.
A list of all the log levels.

# Structs

No description provided by the author
No description provided by the author
The LogHandler defines the interface to handle the log records.
The LogHandler defines the interface to handle the log records.

# Interfaces

The LogHandler defines the interface to handle the log records.
The LogHandler defines the interface to handle the log records.
The LogHandler defines the interface to handle the log records.
The LogHandler defines the interface to handle the log records.
The LogHandler defines the interface to handle the log records.

# Type aliases

The LogHandler defines the interface to handle the log records.