1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00

fixes fileinfo reflection issue

This commit is contained in:
Tai Groot 2021-08-23 21:44:56 -07:00
parent f0c16a0c56
commit 45cad34fdc
Signed by: taigrr
GPG Key ID: D00C269A87614812

View File

@ -13,7 +13,7 @@ func (_ Logger) Trace(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "TRACE", Level: "TRACE",
level: LTrace, level: LTrace,
} }
@ -26,7 +26,7 @@ func (_ Logger) Tracef(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "TRACE", Level: "TRACE",
level: LTrace, level: LTrace,
} }
@ -39,7 +39,7 @@ func (_ Logger) Debug(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "DEBUG", Level: "DEBUG",
level: LDebug, level: LDebug,
} }
@ -52,7 +52,7 @@ func (_ Logger) Debugf(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "DEBUG", Level: "DEBUG",
level: LDebug, level: LDebug,
} }
@ -65,7 +65,7 @@ func (_ Logger) Info(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "INFO", Level: "INFO",
level: LInfo, level: LInfo,
} }
@ -78,7 +78,7 @@ func (_ Logger) Infof(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "INFO", Level: "INFO",
level: LInfo, level: LInfo,
} }
@ -91,7 +91,7 @@ func (_ Logger) Notice(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "NOTICE", Level: "NOTICE",
level: LNotice, level: LNotice,
} }
@ -104,7 +104,7 @@ func (_ Logger) Noticef(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "NOTICE", Level: "NOTICE",
level: LNotice, level: LNotice,
} }
@ -117,7 +117,7 @@ func (_ Logger) Warn(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "WARN", Level: "WARN",
level: LWarn, level: LWarn,
} }
@ -130,7 +130,7 @@ func (_ Logger) Warnf(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "WARN", Level: "WARN",
level: LWarn, level: LWarn,
} }
@ -143,7 +143,7 @@ func (_ Logger) Error(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "ERROR", Level: "ERROR",
level: LError, level: LError,
} }
@ -156,7 +156,7 @@ func (_ Logger) Errorf(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "ERROR", Level: "ERROR",
level: LError, level: LError,
} }
@ -169,7 +169,7 @@ func (_ Logger) Panic(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "PANIC", Level: "PANIC",
level: LPanic, level: LPanic,
} }
@ -192,7 +192,7 @@ func (_ Logger) Panicf(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "PANIC", Level: "PANIC",
level: LPanic, level: LPanic,
} }
@ -215,7 +215,7 @@ func (_ Logger) Fatal(args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "FATAL", Level: "FATAL",
level: LFatal, level: LFatal,
} }
@ -230,7 +230,7 @@ func (_ Logger) Fatalf(format string, args ...interface{}) {
e := Entry{ e := Entry{
Timestamp: time.Now(), Timestamp: time.Now(),
Output: output, Output: output,
File: fileInfo(2), File: fileInfo(3),
Level: "FATAL", Level: "FATAL",
level: LFatal, level: LFatal,
} }