1
0
mirror of https://github.com/deavmi/gogga synced 2024-09-21 09:43:45 +02:00
gogga/README.md

40 lines
915 B
Markdown
Raw Normal View History

<p align="center">
2023-03-02 12:08:20 +02:00
<img src="branding/logo_banner.png" width=450>
</p>
<br>
2023-03-02 13:22:40 +02:00
<h3 align="center"><i><b>Simple VT100 colourised pretty-printing logger</i></b></h3>
---
<br>
<br
2023-03-25 22:45:12 +02: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 13:00:00 +02:00
## Usage
2023-03-02 13:00:00 +02:00
The API is rather straight-forward, simply create a new logger and then you can use it as such:
2023-03-02 13:00:00 +02:00
```d
import gogga;
2023-03-02 13:00:00 +02: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 11:17:48 +02:00
2023-03-03 11:43:38 +02:00
Various [styles](https://gogga.dpldocs.info/v2.1.15/gogga.transform.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
2023-03-03 11:32:34 +02:00
---
2023-03-03 11:43:38 +02:00
Or you can also [View the full API](https://gogga.dpldocs.info/v2.1.15/index.html).
2023-03-03 11:32:34 +02:00