-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from DrOctavius/main
fixes
- Loading branch information
Showing
6 changed files
with
117 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package coreLog | ||
|
||
import ( | ||
"github.com/kyaxcorp/go-core/core/logger" | ||
"github.com/kyaxcorp/go-core/core/logger/model" | ||
"github.com/rs/zerolog" | ||
) | ||
|
||
func getApp() *model.Logger { | ||
return logger.GetCoreLogger() | ||
} | ||
|
||
//--------------------------\\ | ||
|
||
func Info() *zerolog.Event { | ||
return getApp().Info() | ||
} | ||
|
||
func Warn() *zerolog.Event { | ||
return getApp().Warn() | ||
} | ||
|
||
func Error() *zerolog.Event { | ||
return getApp().Error() | ||
} | ||
|
||
func Debug() *zerolog.Event { | ||
return getApp().Debug() | ||
} | ||
|
||
func Fatal() *zerolog.Event { | ||
return getApp().Fatal() | ||
} | ||
|
||
func Panic() *zerolog.Event { | ||
return getApp().Panic() | ||
} | ||
|
||
//--------------------------\\ | ||
|
||
func InfoF(functionName string) *zerolog.Event { | ||
return getApp().InfoF(functionName) | ||
} | ||
|
||
func WarnF(functionName string) *zerolog.Event { | ||
return getApp().WarnF(functionName) | ||
} | ||
|
||
func ErrorF(functionName string) *zerolog.Event { | ||
return getApp().ErrorF(functionName) | ||
} | ||
|
||
func DebugF(functionName string) *zerolog.Event { | ||
return getApp().DebugF(functionName) | ||
} | ||
|
||
func FatalF(functionName string) *zerolog.Event { | ||
return getApp().FatalF(functionName) | ||
} | ||
|
||
func PanicF(functionName string) *zerolog.Event { | ||
return getApp().PanicF(functionName) | ||
} |