forked from External/ergo
logger: Fix comments
This commit is contained in:
parent
68b1dc9e72
commit
9f7e395c96
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue