SetLoggerFactory sets the logger factory to be used throughout the app.
(loggerForModule logging.LoggerFactory, contentLogWriter io.Writer)
| 215 | |
| 216 | // SetLoggerFactory sets the logger factory to be used throughout the app. |
| 217 | func (c *App) SetLoggerFactory(loggerForModule logging.LoggerFactory, contentLogWriter io.Writer) { |
| 218 | c.loggerFactory = loggerForModule |
| 219 | c.contentLogWriter = contentLogWriter |
| 220 | } |
| 221 | |
| 222 | // RegisterOnExit registers the provided function to run before app exits. |
| 223 | func (c *App) RegisterOnExit(f func()) { |