gogga/README.md

40 lines
908 B
Markdown
Raw Permalink Normal View History

<p align="center">
2023-03-02 10:08:20 +00:00
<img src="branding/logo_banner.png" width=450>
</p>
<br>
2023-03-02 11:22:40 +00:00
<h3 align="center"><i><b>Simple VT100 colourised pretty-printing logger</i></b></h3>
---
<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 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 11:00:00 +00:00
```d
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
2024-04-10 12:21:50 +00:00
Various [styles](https://gogga.dpldocs.info/v3.0.1/gogga.core.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
2023-03-03 09:32:34 +00:00
---
2024-04-10 12:21:50 +00:00
Or you can also [View the full API](https://gogga.dpldocs.info/v3.0.1/gogga.html).
2023-03-03 09:32:34 +00:00