feat(Logger)!: add StopLogger function (closes channel)

This commit is contained in:
2024-12-11 12:19:09 +01:00
parent dee54fd93e
commit 72df0b6343
4 changed files with 12 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ type (
init()
// Start an infinite loop to write out messages from the channel
StartLogger()
StopLogger()
Write(message string)
WriteRequest(message string, uuid string)
// If an error that is not nill passed in it logs the error and returns 1, otherwise 0
@@ -32,6 +33,7 @@ type (
init()
// Start an infinite loop to write out messages from the channel
StartLogger()
StopLogger()
WriteDebug(message string)
WriteRequestDebug(message string, uuid string)
WriteErrDebug(err error) (errnum int)