mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
logger: Fix comments
This commit is contained in:
parent
68b1dc9e72
commit
9f7e395c96
@ -60,7 +60,7 @@ type Manager struct {
|
||||
loggingRawIO bool
|
||||
}
|
||||
|
||||
// Config represents the configuration of a single logger.
|
||||
// LoggingConfig represents the configuration of a single logger.
|
||||
type LoggingConfig struct {
|
||||
Method string
|
||||
MethodStdout bool
|
||||
@ -85,6 +85,7 @@ func NewManager(config []LoggingConfig) (*Manager, error) {
|
||||
return &logger, nil
|
||||
}
|
||||
|
||||
// ApplyConfig applies the given config to this logger (rehashes the config, in other words).
|
||||
func (logger *Manager) ApplyConfig(config []LoggingConfig) error {
|
||||
logger.configMutex.Lock()
|
||||
defer logger.configMutex.Unlock()
|
||||
@ -140,6 +141,7 @@ func (logger *Manager) ApplyConfig(config []LoggingConfig) error {
|
||||
return lastErr
|
||||
}
|
||||
|
||||
// IsLoggingRawIO returns true if raw user input and output is being logged.
|
||||
func (logger *Manager) IsLoggingRawIO() bool {
|
||||
logger.configMutex.RLock()
|
||||
defer logger.configMutex.RUnlock()
|
||||
|
Loading…
Reference in New Issue
Block a user