2023-03-02 09:58:10 +00:00
|
|
|
<p align="center">
|
2023-03-02 10:08:20 +00:00
|
|
|
<img src="branding/logo_banner.png" width=450>
|
2023-03-02 09:58:10 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2023-03-02 11:22:40 +00:00
|
|
|
<h3 align="center"><i><b>Simple VT100 colourised pretty-printing logger</i></b></h3>
|
2023-03-02 09:58:10 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br
|
|
|
|
|
2023-03-25 20:45:12 +00:00
|
|
|
[![D](https://github.com/deavmi/gogga/actions/workflows/d.yml/badge.svg)](https://github.com/deavmi/gogga/actions/workflows/d.yml)
|
|
|
|
|
2023-03-02 11:00:00 +00:00
|
|
|
## Usage
|
2023-03-02 09:58:10 +00:00
|
|
|
|
2023-03-02 11:00:00 +00:00
|
|
|
The API is rather straight-forward, simply create a new logger and then you can use it as such:
|
2023-03-02 09:58:10 +00:00
|
|
|
|
2023-03-02 11:00:00 +00:00
|
|
|
```d
|
2023-03-02 11:12:21 +00:00
|
|
|
import gogga;
|
|
|
|
|
2023-03-02 11:00:00 +00:00
|
|
|
GoggaLogger gLogger = new GoggaLogger();
|
|
|
|
|
|
|
|
gLogger.info("This is an info message");
|
|
|
|
gLogger.warn("This is a warning message");
|
|
|
|
gLogger.error("This is an error message");
|
|
|
|
```
|
|
|
|
|
|
|
|
This should output something like the following:
|
|
|
|
|
|
|
|
![](example.png)
|
2020-10-29 09:17:48 +00:00
|
|
|
|
2023-11-22 09:54:39 +00:00
|
|
|
Various [styles](https://gogga.dpldocs.info/v2.2.1/gogga.transform.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
|
2023-03-03 09:38:10 +00:00
|
|
|
|
2023-03-03 09:32:34 +00:00
|
|
|
---
|
|
|
|
|
2023-11-22 09:54:39 +00:00
|
|
|
Or you can also [View the full API](https://gogga.dpldocs.info/v2.2.1/index.html).
|
2023-03-03 09:32:34 +00:00
|
|
|
|