All Projects → Akagi201 → lwlog

Akagi201 / lwlog

Licence: MIT license
A lightweight header only logging library for C

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to lwlog

Easylogger
An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
Stars: ✭ 1,968 (+4178.26%)
Mutual labels:  lightweight, log
got
An enjoyable golang test framework.
Stars: ✭ 234 (+408.7%)
Mutual labels:  lightweight, log
typesafe-i18n
A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.
Stars: ✭ 1,227 (+2567.39%)
Mutual labels:  lightweight
ardupilog
A ardupilot log to MATLAB converter
Stars: ✭ 26 (-43.48%)
Mutual labels:  log
logs-monitor
An application like Linux tail for Windows. Using Windows FindFirstChangeNotification API to monitoring file changes.
Stars: ✭ 43 (-6.52%)
Mutual labels:  log
group-transformer
Official code for Group-Transformer (Scale down Transformer by Grouping Features for a Lightweight Character-level Language Model, COLING-2020).
Stars: ✭ 21 (-54.35%)
Mutual labels:  lightweight
MobilePose
Light-weight Single Person Pose Estimator
Stars: ✭ 588 (+1178.26%)
Mutual labels:  lightweight
fast log
Rust async log High-performance asynchronous logging
Stars: ✭ 104 (+126.09%)
Mutual labels:  log
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (-43.48%)
Mutual labels:  log
aushape
A library and a tool for converting audit logs to XML and JSON
Stars: ✭ 37 (-19.57%)
Mutual labels:  log
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+10.87%)
Mutual labels:  lightweight
Hexo-Theme-MengD
A simple, lightweight Hexo theme(支持:pjax、discuss、twikoo、waline、valine评论)
Stars: ✭ 69 (+50%)
Mutual labels:  lightweight
zEditor
a lightweight rich text editor | 一款超轻量级富文本编辑器 | 1行核心JS代码实现功能
Stars: ✭ 76 (+65.22%)
Mutual labels:  lightweight
nmu
neg4n's mathematics utilities
Stars: ✭ 17 (-63.04%)
Mutual labels:  lightweight
laravel-epilog
🐈 IP, referer, user ID and more in Laravel logs
Stars: ✭ 25 (-45.65%)
Mutual labels:  log
app-application-logger
A small standalone Windows application to log the applications one is using
Stars: ✭ 13 (-71.74%)
Mutual labels:  log
koochak
A minimal & lightweight CSS framework
Stars: ✭ 15 (-67.39%)
Mutual labels:  lightweight
tailor
Tailor, the library for tailing logs under logrotate, written in go.
Stars: ✭ 35 (-23.91%)
Mutual labels:  log
local-paste
Lightweight pastebin for home network which may or may not be connected to the internet.
Stars: ✭ 24 (-47.83%)
Mutual labels:  lightweight
axios-curlirize
axios plugin converting requests to cURL commands, saving and logging them.
Stars: ✭ 152 (+230.43%)
Mutual labels:  log

lwlog

Build Status

A header only, colorful, leveled, macro implemented logging lib for C.

lwlog_emerg("This a emerge log.");
lwlog_alert("This a alert log.");
lwlog_crit("This a crit log.");
lwlog_err("This a err log.");
lwlog_warning("This a warning log.");
lwlog_notice("This a notice log.");
lwlog_info("This a info log.");
lwlog_debug("This a debug log.");

screenshot

Features

  • Only one header is needed.
  • Colorful output to console.
  • errno support.
  • Simple APIs similar to printf().
  • Support different logging levels.
  • Zero performance overhead when logging is disabled.
  • Customizable module name. [TODO]
  • Transparent logging to file/console/network/syslog. [Maybe]

Install

clib install Akagi201/lwlog

Macro controls

  • log level control
  • color control
#define LOG_COLOR (1) // 0: off, 1: on, default: 1
#define LOG_LEVEL (7) // -1: off, 0~7: different log levels, default: 7

#include "lwlog.h"

Build & Test

$ gcc test.c
$ ./a.out
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].