Documentation ¶
Overview ¶
Logging methods and types for the ZCN bridge SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger represents main logger implementation used in app. Logger = zap.NewNop() )
Functions ¶
func HandleFunc ¶
func HandleFunc(buffLen int64) func(http.ResponseWriter, *http.Request)
HandleFunc returns handle function that writes logs to http.ResponseWriter with provided buffer size. Buffered length represented in kilobytes.
func InitLogging ¶
InitLogging initializes the main Logger consistent with passed log directory and level.
If an error occurs during execution, the program terminates with code 2 and the error will be written in os.Stderr.
InitLogging should be used only once while application is starting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.