logger/cmd/logger/prefix.go
2025-03-06 11:25:38 +01:00

14 lines
300 B
Go

package logging
var applicationName = "MyApp"
// Sets the application name prefix used in the logoutput. Example:
// <applicationName> | ...
func SetAppName(name string) {
applicationName = name
}
// Returns the logging prefix name as string.
func GetAppName() string {
return applicationName
}