e2.0.0 Init and config pattern changed, builder added, docs updated, examples removed (deprecated).
This commit is contained in:
1 parent
09ef19bc9e
commit
97b85995e9
25 files changed
+901
-2913
No files matched your search
@@ -73,6 +73,11 @@ func (l *Logger) ApplyConfig(cfg *Config) error {
|
||||
return l.apply(cfg)
|
||||
}
|
||||
|
||||
// GetConfig returns a copy of current configuration
|
||||
func (l *Logger) GetConfig() *Config {
|
||||
return l.getConfig().Clone()
|
||||
}
|
||||
|
||||
// getConfig returns the current configuration (thread-safe)
|
||||
func (l *Logger) getConfig() *Config {
|
||||
return l.currentConfig.Load().(*Config)
|
||||
|
||||
Reference in new issue
Block a user