Documentation ¶
Index ¶
- Variables
- func Decode(s string) (int64, error)
- func Encode(num int64) string
- func GetMysqlConnectingString() string
- func GetRedisOption() redis.Options
- func InitConfig()
- func InitLog(traceHandle io.Writer, debugHandle io.Writer, infoHandle io.Writer, ...)
- func InitLogAudit()
- func InitLogAuditToFile(filePath string)
- func InitLogDebug()
- func InitLogError()
- func InitLogInfo()
- func InitLogWarning()
- func LogAuditf(componentName string, message string, values ...interface{})
- func LogAuditln(componentName string, message string)
Constants ¶
This section is empty.
Variables ¶
var ( // Trace is a log handler for extremely detailed level logs. It is so far // sparely used in scipipe. Trace *log.Logger // Debug is a log handler for debugging level logs Debug *log.Logger // Info is a log handler for information level logs Info *log.Logger // Audit is a log handler for audit level logs Audit *log.Logger // Warning is a log handler for warning level logs Warning *log.Logger // Error is a log handler for error level logs Error *log.Logger )
Functions ¶
func GetMysqlConnectingString ¶
func GetMysqlConnectingString() string
func GetRedisOption ¶
func GetRedisOption() redis.Options
func InitConfig ¶
func InitConfig()
func InitLog ¶
func InitLog( traceHandle io.Writer, debugHandle io.Writer, infoHandle io.Writer, auditHandle io.Writer, warningHandle io.Writer, errorHandle io.Writer)
InitLog initiates logging handlers
func InitLogAuditToFile ¶
func InitLogAuditToFile(filePath string)
InitLogAuditToFile initiate logging with level=AUDIT, and write that to fileName
func LogAuditf ¶
LogAuditf logs a pretty printed log message with the AUDIT log level, where componentName is a name of a process, task, workflow or similar that generates the message, while message and values are formatted in the manner of fmt.Printf
func LogAuditln ¶
LogAuditln logs a pretty printed log message with the AUDIT log level, where componentName is a name of a process, task, workflow or similar that generates the message, while message is a custom message (can be specified as multiple strings, which will then be formatted in the manner of fmt.Println).
Types ¶
This section is empty.