Browse Source

logger: Fix comments

tags/v0.9.2-beta
Daniel Oaks 6 years ago
parent
commit
9f7e395c96
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      irc/logger/logger.go

+ 3
- 1
irc/logger/logger.go View File

@@ -60,7 +60,7 @@ type Manager struct {
60 60
 	loggingRawIO    bool
61 61
 }
62 62
 
63
-// Config represents the configuration of a single logger.
63
+// LoggingConfig represents the configuration of a single logger.
64 64
 type LoggingConfig struct {
65 65
 	Method        string
66 66
 	MethodStdout  bool
@@ -85,6 +85,7 @@ func NewManager(config []LoggingConfig) (*Manager, error) {
85 85
 	return &logger, nil
86 86
 }
87 87
 
88
+// ApplyConfig applies the given config to this logger (rehashes the config, in other words).
88 89
 func (logger *Manager) ApplyConfig(config []LoggingConfig) error {
89 90
 	logger.configMutex.Lock()
90 91
 	defer logger.configMutex.Unlock()
@@ -140,6 +141,7 @@ func (logger *Manager) ApplyConfig(config []LoggingConfig) error {
140 141
 	return lastErr
141 142
 }
142 143
 
144
+// IsLoggingRawIO returns true if raw user input and output is being logged.
143 145
 func (logger *Manager) IsLoggingRawIO() bool {
144 146
 	logger.configMutex.RLock()
145 147
 	defer logger.configMutex.RUnlock()

Loading…
Cancel
Save