Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Custom ¶
func Custom(loggerCfg config.Logger, options ...Options) iris.HandlerFunc
Custom returns the logger middleware as HandlerFunc with customized settings accepts 3 parameters first parameter is the writer (io.Writer) second parameter is the prefix of which the message will follow up third parameter is the logger.Options
func CustomHandler ¶
CustomHandler returns the logger middleware with customized settings accepts 3 parameters first parameter is the writer (io.Writer) second parameter is the prefix of which the message will follow up third parameter is the logger.Options
func Default ¶
func Default(options ...Options) iris.HandlerFunc
Default returns the logger middleware as HandlerFunc with the default settings
func DefaultHandler ¶
DefaultHandler returns the logger middleware with the default settings
Types ¶
type Options ¶
Options are the options of the logger middlweare contains 5 bools Latency, Status, IP, Method, Path if set to true then these will print
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns an options which all properties are true