Documentation ¶
Index ¶
Constants ¶
View Source
const ( FatalError int = 0 Error int = 100 Warning int = 200 Information int = 300 )
Log level defines the severity of log report. FatalError prints out a message and also causes os.Exit(1). Error, Warning and Info prints out only a message.
Variables ¶
This section is empty.
Functions ¶
func CreateLog ¶
CreateLog prints out a log message depends on application life cycle. This module reads first the result of environment parameter REST_APP. If PKLOG is equal to "PRODUCTION", the logs will be generated in /var/log/syslog otherwise the logs will be displayed with color on standard display. logLevel accepts four types of log level: FatalError(0), Error (10), Warning (20) and Info (30). s is the log message which is of type string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.