Documentation ¶
Index ¶
- type Client
- func (c Client) Debug(ctx context.Context, title string, valueMaps ...log.Body)
- func (c Client) Error(ctx context.Context, title string, valueMaps ...log.Body)
- func (c Client) Fatal(ctx context.Context, title string, valueMaps ...log.Body)
- func (c Client) Info(ctx context.Context, title string, valueMaps ...log.Body)
- func (c Client) Warn(ctx context.Context, title string, valueMaps ...log.Body)
- type ContextParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PrintlnFn func(...interface{}) // contains filtered or unexported fields }
Client is the logger client, to instantiate it call `New()`
func New ¶
func New(level string, parsers ...ContextParser) Client
New builds a logger Client on the appropriate log level
func (Client) Debug ¶
Debug logs an entry on level "DEBUG" with the received title along with all the values collected from the input valueMaps and the context.
func (Client) Error ¶
Error logs an entry on level "ERROR" with the received title along with all the values collected from the input valueMaps and the context.
func (Client) Fatal ¶
Fatal logs an entry on level "ERROR" with the received title along with all the values collected from the input valueMaps and the context.
After that it proceeds to exit the program with code 1.
Click to show internal directories.
Click to hide internal directories.