GithubHelp home page GithubHelp logo

logger-cpp's Introduction

Logger

C++ License: AGPL v3

Version: 1.2.0


Table of Contents

About

This is a simple C++ logger that can be used to log messages to the console or to a file.

Features

  • Debug, Info, Warning, Error and Fatal log levels

Installation

  1. Add the Logger submodule to your project
git submodule add https://github.com/Zarox28/Logger.git libs/Logger
  1. Initialize the submodule & update it
git submodule update --init --recursive
  1. Include the Logger header file in your project
#include "libs/Logger/Logger.h"

Note: The Logger submodule is located in the libs directory of your project.

Tip: You can also add using namespace Logger; to your project to avoid having to type Logger:: before every log level.

Usage

Init

Logger::init();

Reset

Logger::reset();

Debug

Logger::debug("This is a debug message");
Preview

Info

Logger::info("This is an info message");
Preview

Success

Logger::success("This is a success message");
Preview

Warn

Logger::warn("This is a warning message");
Preview

Error

Logger::error("This is an error message");
Preview

Fatal

Logger::fatal("This is a fatal message");
Preview

Note: Fatal log message blink in red to catch the user's attention.

Changelog

see CHANGELOG.md for latest changes.

Contributing

Contributing is disabled for this repository.

License

This project is licensed under the AGPL v3 License - see the LICENSE file for details.

Authors

logger-cpp's People

Contributors

zarox28 avatar

Stargazers

Luna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.