const LDATE
pub const LDATE = 1Purpose
Constant LDATE, defining protocol or algorithm parameters.
#logOwning Logger: print/printf/fatal; optional file location.
const LDATEpub const LDATE = 1Constant LDATE, defining protocol or algorithm parameters.
const LTIMEpub const LTIME = 2Constant LTIME, defining protocol or algorithm parameters.
const LMICROSECONDSpub const LMICROSECONDS = 4Constant LMICROSECONDS, defining protocol or algorithm parameters.
const LUTCpub const LUTC = 8Constant LUTC, defining protocol or algorithm parameters.
const LLONGFILEpub const LLONGFILE = 16Constant LLONGFILE, defining protocol or algorithm parameters.
const LSHORTFILEpub const LSHORTFILE = 32Constant LSHORTFILE, defining protocol or algorithm parameters.
const LMSGPREFIXpub const LMSGPREFIX = 64Constant LMSGPREFIX, defining protocol or algorithm parameters.
const LSTD_FLAGSpub const LSTD_FLAGS = 3Constant LSTD_FLAGS, defining protocol or algorithm parameters.
struct Loggerpub struct Logger {
pub prefix string
pub use_stdout bool
pub flags int
pub buf string
pub use_buf bool
}Structure encapsulating prefix, use_stdout, flags, buf, use_buf.
prefix stringuse_stdout boolflags intbuf stringuse_buf boolnew_loggerpub fn new_logger() LoggerConstruct logger.
No arguments are required.
Logger — a value of this type
($&Logger) set_prefixpub fn (l $&Logger) set_prefix(p string)Operation on $&Logger: set prefix.
l $&LoggerLogger instance used by this call (exclusive borrow).p stringThis call does not return a value.
(&Logger) prefixpub fn (l &Logger) prefix() stringExecute prefix on &Logger.
l &LoggerLogger instance used by this call (borrow).string — result string
(&Logger) flagspub fn (l &Logger) flags() intExecute flags on &Logger.
l &LoggerLogger instance used by this call (borrow).int — a value of this type
($&Logger) set_output_stdoutpub fn (l $&Logger) set_output_stdout(on bool)Operation on $&Logger: set output stdout.
l $&LoggerLogger instance used by this call (exclusive borrow).on boolThis call does not return a value.
($&Logger) set_flagspub fn (l $&Logger) set_flags(f int)Operation on $&Logger: set flags.
l $&LoggerLogger instance used by this call (exclusive borrow).f intThis call does not return a value.
($&Logger) set_output_bufferpub fn (l $&Logger) set_output_buffer()Operation on $&Logger: set output buffer.
l $&LoggerLogger instance used by this call (exclusive borrow).This call does not return a value.
($&Logger) buffer_textpub fn (l $&Logger) buffer_text() stringOperation on $&Logger: buffer text.
l $&LoggerLogger instance used by this call (exclusive borrow).string — result string
($&Logger) outputpub fn (l $&Logger) output(file string, line int, s string)Execute output on $&Logger.
l $&LoggerLogger instance used by this call (exclusive borrow).file stringline ints stringThis call does not return a value.
($&Logger) println_atpub fn (l $&Logger) println_at(file string, line int, args <-> fmt.Arg)Operation on $&Logger: println at.
l $&LoggerLogger instance used by this call (exclusive borrow).file stringline intargs <-> fmt.ArgThis call does not return a value.
($&Logger) print_atpub fn (l $&Logger) print_at(file string, line int, args <-> fmt.Arg)Operation on $&Logger: print at.
l $&LoggerLogger instance used by this call (exclusive borrow).file stringline intargs <-> fmt.ArgThis call does not return a value.
($&Logger) printf_atpub fn (l $&Logger) printf_at(file string, line int, f string, args <-> fmt.Arg)Operation on $&Logger: printf at.
l $&LoggerLogger instance used by this call (exclusive borrow).file stringline intf stringargs <-> fmt.ArgThis call does not return a value.
($&Logger) fatal_atpub fn (l $&Logger) fatal_at(file string, line int, args <-> fmt.Arg)Operation on $&Logger: fatal at.
l $&LoggerLogger instance used by this call (exclusive borrow).file stringline intargs <-> fmt.ArgThis call does not return a value.
($&Logger) printpub fn (l $&Logger) print(args <-> fmt.Arg)Operation on $&Logger: print.
l $&LoggerLogger instance used by this call (exclusive borrow).args <-> fmt.ArgThis call does not return a value.
($&Logger) printlnpub fn (l $&Logger) println(args <-> fmt.Arg)Operation on $&Logger: print with a newline.
l $&LoggerLogger instance used by this call (exclusive borrow).args <-> fmt.ArgThis call does not return a value.
($&Logger) printfpub fn (l $&Logger) printf(f string, args <-> fmt.Arg)Operation on $&Logger: print using a format string.
l $&LoggerLogger instance used by this call (exclusive borrow).f stringargs <-> fmt.ArgThis call does not return a value.
($&Logger) fatalpub fn (l $&Logger) fatal(args <-> fmt.Arg)Execute fatal on $&Logger.
l $&LoggerLogger instance used by this call (exclusive borrow).args <-> fmt.ArgThis call does not return a value.