| 1 |
log: general-purpose logging system |
| 2 |
|
| 3 |
The log module provides a simple interface for application logging. The |
| 4 |
[[logger]] interface provides an abstraction that users may implement for custom |
| 5 |
logging logic. We provide a simple logger implementation that prefixes each line |
| 6 |
with the current timestamp; to initialize such a logger see [[new]]. |
| 7 |
|
| 8 |
A global logger is also provided for simple applications to use, [[global]], |
| 9 |
which is an instance of the standard logger that writes to [[os::stderr]] by |
| 10 |
default. The user may configure a new global logger via [[setlogger]]. |