fix(Logger): make buffer size user customizable
This commit is contained in:
@@ -6,10 +6,12 @@ import (
|
||||
"net/http"
|
||||
"reflect"
|
||||
"sync"
|
||||
|
||||
Assert "github.com/lbatuska/goutils/assert"
|
||||
)
|
||||
|
||||
// Use this in the init() function to initialize the size of the buffered channel
|
||||
const logbuffersize int32 = 200
|
||||
const Logbuffersize int32 = 200
|
||||
|
||||
var DEBUG bool = true
|
||||
|
||||
@@ -27,6 +29,7 @@ func Create(instance Logger) {
|
||||
}
|
||||
|
||||
func LoggerInstance() Logger {
|
||||
Assert.NotNil(loggerInstance)
|
||||
return loggerInstance
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user