Git Product home page Git Product logo

ilc20log's Introduction

ILC20LOGLIB v2

Pros

  1. Traceability: ILC20LOG provides solid traceability for the application, allowing for the logging of events, errors, and crucial information. This is essential for troubleshooting and performance monitoring.

  2. Time Savings: It simplifies the debugging process by offering a detailed record of events, making it easier to identify and resolve bugs efficiently.

  3. Configurability: Logging libraries like ILC20LOG often offer flexible configuration, enabling you to define what types of messages to log, where to store them, and how to format them.

Cons

"NO CONS"

Objectives

  1. first is to help out people with console debugging
  2. removeing the option std::cout that is hard to write
  3. easy to implement in the projecte with no interuuption

FRAMEWORK SUPPORT:

  • Linux [✅]
  • Macos [✅]
  • Windows [✅]

What is ilc20log?

ilc20log is a logger for engine and small tools.


Supported Symbols

The ilc20log library supports the following symbols:

  • ICG20_LOGGER_TYPE_INFO: This symbol is used for informational messages.
  • ICG20_LOGGER_TYPE_WARNING: This symbol is used for warning messages.
  • ICG20_LOGGER_TYPE_ERROR: This symbol is used for error messages.
  • ICG20_LOGGER_TYPE_FATAL: This symbol is used for fatal error messages.
  • ICG20_LOGGER_TYPE_LOG: This symbol is used for log messages.
  • ICG20_LOGGER_TYPE_DEBUG: This symbol is used for debug messages.
  • ICG20_LOGGER_TYPE_EVENT: This symbol is used for event messages.
  • ICG20_LOGGER_TYPE_FILE: This symbol is used for file-related messages.
  • ICG20_LOGGER_TYPE_SHADER: This symbol is used for shader-related messages.
  • ICG20_LOGGER_TYPE_SHADER_DEBUG: This symbol is used for shader debug messages.
  • ICG20_LOGGER_TYPE_DOWNLOAD: This symbol is used for download-related messages.
  • ICG20_LOGGER_TYPE_WEBENGINE: This symbol is used for web engine-related messages.
  • ICG20_LOGGER_TYPE_CONSOLE: This symbol is used for console-related messages.
  • ICG20_LOGGER_TYPE_SYSTEM: This symbol is used for system-related messages.
  • + popular librarys status

Each of these symbols corresponds to a different type of log message, allowing you to categorize and filter your logs as needed.

Setup

  1. Setup the header file: You can do this using Visual Studio or your preferred IDE.
  2. Include the header files: In your main.cpp file, include the necessary header files. For example:
    #include <icg_algorithm.hpp>
  3. Define your class: You can define your class as follows:
    ic20_algorithm* cLogger = new ic20_algorithm;
  4. Initialize the library: You can initialize the library with the following command:
    cLogger->ic20_athm_init();
  5. Define your custom log message: Now you can define your custom log message. Here are a couple of examples:
    • To print a message log:
      cLogger->messageType(ICG20_CONSOLE_LOGGER_TYPE_INFO).c20_print("Hello World");
    • To print example messages of all types of logs inside the library:
      cLogger->ilc20_exampleMessages();

Example Logger Code:

#include <iostream>
#include <icg_algorithm.hpp>

int main() {
    ic20_algorithm* cLogger = new ic20_algorithm;

    cLogger->ic20_athm_init();
    cLogger->ilc20_exampleMessages();
}

immagine

Example Your message Code:

int main() {
	ic20_algorithm* cLogger = new ic20_algorithm;

	cLogger->ic20_athm_init();
	cLogger->messageType(ICG20_CONSOLE_LOGGER_TYPE_INFO).c20_print("Hello World");

}

immagine


Will you expand this library with custom user options?

Yes, I will expand this library with custom options by the user but for now it only provides pre-defined messages...

UPDATE v2 [19/04/2024]:

Cooming Soon....

ilc20log's People

Contributors

mvoud 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.