Loga is a simple logging library to keep track of code with an integrated console.
- 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 | Trace | Debug | Info | Warn | Error | Fatal | Off |
---|---|---|---|---|---|---|---|
✒️Trace | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
🐞Debug | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |
📢Info | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |
✔️ | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | |
⛔️Error | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | ❌ |
💥Fatal | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |
🚫Off | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
#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")
#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")
#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.")
More examples here.
See CHANGELOG.md
Usage is provided under the MIT License.
Copyright © 2021, Danysys.