Documentation
¶
Overview ¶
Package common contains data structures and constants shared between rlog and its modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
FormatMessage generates a log message
func ReplaceNewlines ¶
ReplaceNewlines replaces newlines with #012 and removes indentations Arguments: a string for newline replacement Returns: string with #012 instead of newlines
func SyslogHeader ¶
func SyslogHeader() string
SyslogHeader gathers environment information to generate a log prefix
Types ¶
type RlogMsg ¶
type RlogMsg struct {
Msg string //log message
Timestamp string //time of log generation (preformatted)
Severity RlogSeverity //log severity
Pc uint //program counter position where log message was generated
StackTrace string //stack trace (for error and fatal only)
}
RlogMsg carries a formatted log message including some additional information.
type RlogSeverity ¶
type RlogSeverity uint
RlogSeverity defines a type to represent severity levels for log messages
Click to show internal directories.
Click to hide internal directories.