mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
add embeddable scanner SDK
This commit is contained in:
@@ -88,3 +88,13 @@ func CloseLogger() {
|
||||
globalLogger.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// ResetLogger clears the process-wide logger so embedded callers can rebuild it
|
||||
// after replacing runtime configuration.
|
||||
func ResetLogger() {
|
||||
if globalLogger != nil {
|
||||
globalLogger.Close()
|
||||
}
|
||||
globalLogger = nil
|
||||
loggerOnce = sync.Once{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user