Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeServiceLogger ¶ added in v1.57.0
func InitializeServiceLogger(stackFilePath string)
InitializeLogger sets the file path for the singleton instance This must be called before the singleton is accessed.
func PurgeLogs ¶ added in v1.57.0
func PurgeLogs() error
PurgeLogs truncates the log file to remove all log entries
func SubscribeToLogs ¶
func SubscribeToLogs(subscription func(string))
Types ¶
type LogEntry ¶ added in v1.57.0
type ServiceLogger ¶ added in v1.57.0
ServiceLogger struct to encapsulate the logger and file path
func GetServiceLogger ¶ added in v1.57.0
func GetServiceLogger() *ServiceLogger
GetServiceLogger retrieves the singleton instance of the ServiceLogger
type SystemLogsService ¶
type SystemLogsService struct {
// contains filtered or unexported fields
}
SystemLogsService - An EventBus service for handling logging of events and exceptions So they can be subscribed to and displayed in the CLI
Click to show internal directories.
Click to hide internal directories.