gogga/README.md

40 lines
908 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/v3.0.1/gogga.core.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
---
Or you can also [View the full API](https://gogga.dpldocs.info/v3.0.1/gogga.html).