log/logid+runtimelogid.go

23 lines
540 B
Go

// +build runtimelogid
package log
//// Format writes the source file path and line number of the record to the buf.
//func (p *LogidFormatPart) Format(r *Record, buf *bytes.Buffer) {
// logid := p.GetLogid()
// logidstr := strconv.FormatInt(logid, 10)
// buf.WriteString(logidstr)
//}
//
//func (p *LogidFormatPart) GetLogid() int64 {
// return runtime.GetLogid()
//}
//
//func (p *LogidFormatPart) SetLogid(newid int64) (oldid int64) {
// return runtime.SetLogid(newid)
//}
//
//func init() {
// LogidSupporter = &LogidFormatPart{}
//}