Home | History | Annotate | Download | only in log

Lines Matching defs:Prefix

26 // These flags define which text to prefix to each log entry generated by the Logger.
31 // The prefix is followed by a colon only when Llongfile or Lshortfile
52 prefix string // prefix to write at beginning of each line
60 // The prefix appears at the beginning of each generated log line.
62 func New(out io.Writer, prefix string, flag int) *Logger {
63 return &Logger{out: out, prefix: prefix, flag: flag}
93 *buf = append(*buf, l.prefix...)
140 // the text to print after the prefix specified by the flags of the
239 // Prefix returns the output prefix for the logger.
240 func (l *Logger) Prefix() string {
243 return l.prefix
246 // SetPrefix sets the output prefix for the logger.
247 func (l *Logger) SetPrefix(prefix string) {
250 l.prefix = prefix
270 // Prefix returns the output prefix for the standard logger.
271 func Prefix() string {
272 return std.Prefix()
275 // SetPrefix sets the output prefix for the standard logger.
276 func SetPrefix(prefix string) {
277 std.SetPrefix(prefix)
340 // the text to print after the prefix specified by the flags of the