Giter Site home page Giter Site logo

loga's Introduction

Loga

Latest Version AutoIt Version MIT License Made with Love

Loga is a simple logging library to keep track of code with an integrated console.

Features

  • Common log levels.
  • Integrated console.
  • Multiple instances.
  • Custom color and font for each instance log level.
  • Define output format with macros.
  • Conditional and occasional Logging.
  • Easy to use.

Log levels

Log Levels Trace Debug Info Warn Error Fatal Off
✒️Trace ✔️
🐞Debug ✔️ ✔️
📢Info ✔️ ✔️ ✔️
⚠️Warn ✔️ ✔️ ✔️ ✔️
⛔️Error ✔️ ✔️ ✔️ ✔️ ✔️
💥Fatal ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
🚫Off

Usage

Basic use:
#include "..\Loga.au3"

_LogaTrace("I'm Trace")
_LogaDebug("I'm Debug")
_LogaInfo("I'm Info")
_LogaWarn("I'm Warn")
_LogaError("I'm Error")
_LogaFatal("I'm Fatal")
Short Wrapper Functions:
#include "..\Loga.au3"

_LogaT("I'm Trace")
_LogaD("I'm Debug")
_LogaI("I'm Info")
_LogaW("I'm Warn")
_LogaE("I'm Error")
_LogaF("I'm Fatal")
Define Custom Console:
#include "..\Loga.au3"


Local $sSettings1='LogToGUI="true", GUIBkColor="0x000000", Trans="230", ' & _
'InfoFontColor="0xd0ffbc", WarnFontColor="0x53b6ff", ErrorFontColor="0x4a22a8", ' & _
'_FatalFontColor="0x0000FF", DebugFontColor="0xffab64", TraceFontColor="0xfff0a7"'

Local $hLoga1=_LogaNew($sSettings1) ;create instance with custom settings
_LogaTrace("I'm Trace")
_LogaDebug("I'm Debug")
_LogaInfo("I'm Info")
_LogaWarn("I'm Warn")
_LogaError("I'm Error")
_LogaFatal("I'm Fatal")

MsgBox(0,"Info","Press Ok to Exit.")
Custom Console Preview:

More examples here.

Release History

See CHANGELOG.md

License

Usage is provided under the MIT License.

Copyright © 2018, Danysys.

loga's People

Contributors

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