mirror of
https://github.com/deavmi/gogga
synced 2024-09-21 09:43:45 +02:00
40 lines
913 B
Markdown
40 lines
913 B
Markdown
<p align="center">
|
|
<img src="branding/logo_banner.png" width=450>
|
|
</p>
|
|
|
|
<br>
|
|
|
|
<h3 align="center"><i><b>Simple VT100 colourised pretty-printing logger</i></b></h3>
|
|
|
|
---
|
|
|
|
<br>
|
|
<br
|
|
|
|
[![D](https://github.com/deavmi/gogga/actions/workflows/d.yml/badge.svg)](https://github.com/deavmi/gogga/actions/workflows/d.yml)
|
|
|
|
## Usage
|
|
|
|
The API is rather straight-forward, simply create a new logger and then you can use it as such:
|
|
|
|
```d
|
|
import gogga;
|
|
|
|
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)
|
|
|
|
Various [styles](https://gogga.dpldocs.info/v2.2.1/gogga.transform.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
|
|
|
|
---
|
|
|
|
Or you can also [View the full API](https://gogga.dpldocs.info/v2.2.1/index.html).
|
|
|