2022-11-22 15:35:29 +00:00
|
|
|
dlog
|
|
|
|
====
|
|
|
|
|
|
|
|
**Simple and modular logging library**
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
We recommend you use [dub](http://code.dlang.org) to add dlog to your project as follows:
|
|
|
|
|
|
|
|
```
|
|
|
|
dub add dlog
|
|
|
|
```
|
|
|
|
|
|
|
|
* [View on DUB](https://code.dlang.org/packages/dlog)
|
2023-03-03 13:32:55 +00:00
|
|
|
* [View API](https://dlog.dpldocs.info/v0.3.19/index.html)
|
2022-11-22 15:35:29 +00:00
|
|
|
|
|
|
|
## Components
|
|
|
|
|
|
|
|
dlog is formed out of two main components:
|
|
|
|
|
|
|
|
1. `Logger`
|
|
|
|
* The logger contains the needed barebones for facilitating the actual logging of text
|
|
|
|
2. `MessageTransform`
|
|
|
|
* A MessageTransform is attached to a logger and performs manipulation on the text input into the logger for logging
|
|
|
|
* They may be chained as to perform multiple transformations in a stream-like fashion
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
2023-03-03 10:08:11 +00:00
|
|
|
LGPLv3
|
2022-11-22 15:35:29 +00:00
|
|
|
|