Documentation
¶
Overview ¶
Package log handles logging.
Index ¶
Constants ¶
View Source
const ( // LoggerName is used to specify the source of the logger. LoggerName = "wso2-apim-broker" // FilePerm is the permission for the server log file. FilePerm = 0644 ErrMsgUnableToOpenLogFile = "unable to open the Log file: %s" )
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
Configure initializes lager logging object, 1. Setup log level 2. Setup log file Returns configured logger and any error encountered.
func HandleErrorAndExit ¶
HandleErrorAndExit prints an error to STDOUT and invoke a panic.
func IoWriterLog ¶
IoWriterLog returns the IO writer object for logging. By default it is pointed to STDOUT.
Types ¶
Click to show internal directories.
Click to hide internal directories.