Giter Site home page Giter Site logo

nojhan / clutchlog Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 4.64 MB

C++ "spatial" logging system which targets versatile, (de)clutchable, _debugging_, in a single header.

Home Page: https://nojhan.github.io/clutchlog/

License: Other

CMake 36.26% C++ 53.79% Shell 0.35% CSS 9.60%
cpp cpp-library debugging logging logging-library spatial-logging

clutchlog's Introduction

clutchlog's People

Contributors

ja2142 avatar jacobdenobel avatar nojhan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

clutchlog's Issues

Allow to increase depth at call

Find a way to allow the user to add a depth delta in the main macro.
Would allow to manually adjust indentation within the same function.
Something like: CLUTCHLOG(debug, "this" << that, 2); to add two indentation levels with depth_mark.

Add a "{depth_fmt}" tag

Would allow for having a different color for each stack depth.
Need a configuration on a colormap, maybe an explicit list of 256-colors items?

256-colors

Allow instantiation of fmt with single numeric parameters, to use 256 ANSI colors.

Add a "{file_fmt}" tag

Would insert a format tag based on the hash of the current file.
Useful to enable coloring by code "modules".

Would need to know the color mode in which to compute the hash. Probably RGB is too large (too much close colors) and 16-colors too small (too much collisions), so default to 256-colors? (Who has a 4-bits ANSI terminal anyway?)

Add ANSI links support with a "{file_link}" tag

Would allow for a short name display of the file, with an hyperlink to some URL/command.

Configuration like log.file_link("file://{file}",clutchlog::label::path);, then "{file_link}" in the template.

Possible label tags:

  • path ("/home/nojhan/file.ext"),
  • basename ("file.ext"),
  • basestrip ("file"),
  • dirname ("nojhan"),
  • dirbase ("nojhan/file.ext"),
  • dirbasestrip ("nojhan/file").

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.