An open API service indexing awesome lists of open source software.

https://github.com/adalkiran/go-colorful-logging

A simple Go library for colorful logging output.
https://github.com/adalkiran/go-colorful-logging

console console-colors go golang golang-library logging logging-library

Last synced: 4 months ago
JSON representation

A simple Go library for colorful logging output.

Awesome Lists containing this project

README

        

# **go-colorful-logging**

[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white&style=flat-square)](https://www.linkedin.com/in/alper-dalkiran/)
[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white&style=flat-square)](https://twitter.com/aalperdalkiran)
![HitCount](https://hits.dwyl.com/adalkiran/go-colorful-logging.svg?style=flat-square)
![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)

A simple Go library for colorful logging output.

## **WHY THIS PROJECT?**

This project is a spin-off of my [WebRTC Nuts and Bolts
](https://github.com/adalkiran/webrtc-nuts-and-bolts) project's logging part. In the main project, a logging mechanism that supports different colored outputs and shows logger part name (e.g. APP, WS, DTLS, SRTP, etc...) was needed.

## **INSTALLATION**

```sh
go get github.com/adalkiran/go-colorful-logging
```

## **EXAMPLE OUTPUT**

An output screenshot from [WebRTC Nuts and Bolts](https://github.com/adalkiran/webrtc-nuts-and-bolts) project, which the same logging system was applied on:

![An output screenshot from WebRTC Nuts and Bolts](https://github.com/adalkiran/webrtc-nuts-and-bolts/raw/main/docs/images/01-07-backend-initial-output.png)
## **EXAMPLE**

You can find example projects made using go-colorful-logging and [Inventa](https://github.com/adalkiran/go-inventa) at [https://github.com/adalkiran/inventa-examples](https://github.com/adalkiran/inventa-examples).

In this inventa-examples repo, there are multiple projects. The ones which are developed using Go, use go-colorful-logging library for logging.

## **LICENSE**

go-colorful-logging is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.