package
1.0.4
Repository: https://github.com/jerejones/jlog.git
Documentation: pkg.go.dev

# Functions

Level writes info.Level to w.
LoggerName writes info.Source.LoggerName() to w.
Message writes info.Message to w.
New returns a Renderer that conforms to the template provided using registered LayoutRenderers and an error if there was an error in the template.
RegisterRenderer takes a name and an instance of a LayoutRenderer and registers it so that the name can be used in layout templates.

# Structs

BaseDir renders the directory of the executable relative to the current working directory and is typically useful for specifying where to save log files Example: "filename": "${basedir}/logs/debug.log".
No description provided by the author

# Interfaces

LayoutRenderer is the interface that wraps a layout renderer.
LayoutRendererWithParameters is the interface which wraps a LayoutRenderer factory such that parameters can be specified in the layout Custom LayoutRenderers will typically also implement this interface if its behaviour can be customized.
Renderer is the interface that wraps a specific template.

# Type aliases

The LayoutFunc type is an adapter to allow the use of ordinary functions as layout renderers.