Giter Club home page Giter Club logo

spuro's Introduction

spuro

A stb-style C library for logging.

Table of Contents

What is this thing?

This is a C library that offers a variety of log macros. Check out src/spuro.h and src/main.c for more details.

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C/C++ Header                     1             63             27            478
-------------------------------------------------------------------------------

The repo is still under construction.

Basic example

#define SPURO_IMPLEMENTATION
#include "spuro.h"

int main(void)
{
    spr_tracef("Hello, trace!\n");
    return 0;
}

Documentation

Prerequisites

To build the spuro-demo binary, you need:

  • automake and autoconf to generate the needed Makefile
  • make to build the binary
  • gcc or clang, for building spuro-demo

Configuration

To prepare the files needed by autotools, run:

aclocal
autoconf
automake --add-missing
./configure # Optionally, with --enable-debug=yes or --host
make

You will get a ./configure script, which you can use to enable debug mode or other features.

  • Run ./configure --host x86-64-w64-mingw32 to setup the Makefile appropriately for a x86_64-w64-mingw32 build.

Building

To build both the libspuro.so lib and spuro-demo binary, run:

  • ./configure, which should generate the Makefile. See Configuration section.
  • make, to build all target

Supported platforms

ATM the code should build for:

  • x86_64-Linux
  • x86_64-w64-mingw32 to target Windows

Todo

spuro's People

Contributors

jgabaut avatar khushal-banks avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

spuro's Issues

[FEATURE] Drop cstring-only macros

All current macro names that only work with plain cstring argument (no format) should be removed, since with 0.1.1 all other macros should handle this case gracefully.

Reference:

#5

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.