qoobing.com/gomod/log@v1.2.8/logid+runtimelogid.go (about)

     1  // +build runtimelogid
     2  package log
     3  
     4  //// Format writes the source file path and line number of the record to the buf.
     5  //func (p *LogidFormatPart) Format(r *Record, buf *bytes.Buffer) {
     6  //	logid := p.GetLogid()
     7  //	logidstr := strconv.FormatInt(logid, 10)
     8  //	buf.WriteString(logidstr)
     9  //}
    10  //
    11  //func (p *LogidFormatPart) GetLogid() int64 {
    12  //	return runtime.GetLogid()
    13  //}
    14  //
    15  //func (p *LogidFormatPart) SetLogid(newid int64) (oldid int64) {
    16  //	return runtime.SetLogid(newid)
    17  //}
    18  //
    19  //func init() {
    20  //	LogidSupporter = &LogidFormatPart{}
    21  //}