Giter Club home page Giter Club logo

lognestmonster's Introduction

(WIP) A lightweight C logging library and parser for event-oriented logs.

Lognestmonster is a general-purpose single-header C logging library that pertains a number of features:

  • Nested/layer-based logging capabilities
  • Event-oriented log compilation
  • Multiple queues or outputs
  • Full developer customizability on memory allocation
    • Preprocessor handles to incorporate non-standard memory functions
  • Full developer customizability on I/O redirection
    • Generic filesystem log output
    • End-to-end stdout and stdin piping, allowing data transfer over serial, socket, or anything else
  • A binary format lighter than plaintext
  • A feature-packed but comprehensive standalone deserializer/parser
    • Interactive textual UI (ncurses)
    • Logtree filtering/sorting and navigation
    • Data operations such as binary to plaintext conversions and custom hooks on user-defined events
    • Optional daemon for hook events
    • Full developer customizability on data display, program controls, and hook operations

(WIP) Not yet meant for development or production use

Performance at Different Optimization Levels

Output of ./test performance as of commit b54160c:

Optimization Level Header Binary Size* (in bytes) Unit Test Runtime** (in µs)
-O0 22552 70
-O1 18424 67
-O2 22520 69
-O3 26760 68
-Os 18424 69

*Header binary size is measured by compilation of the following source file:

// tests/header_only.c
#define LNM_INIT
#include "lognestmonster.h"

int main(void) {
    return 0;
}

**Median taken from 200 trials run in sequence to account for variable processor conditions and behaviors. Run on a mid-tier 3.3GHz processor (i5-4590). Runtime is measured by the execution and output of the header's unit test.

Copyright

This package is copyrighted by Joshua 'joshuas3' Stockin and licensed under the MIT License.

A form of the following should be present in each major library source or header file.

lognestmonster Copyright (c) 2020 Joshua 'joshuas3' Stockin
<https://joshstock.in>
<https://github.com/JoshuaS3/lognestmonster>
This software is licensed under the MIT License.

lognestmonster's People

Contributors

joshuas3 avatar patr0la avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

patr0la rlankenau

lognestmonster's Issues

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.