Skip to content

Jacob-C-Smith/log

Repository files navigation

log

CMake

Log errors, warnings, and information with pretty printing

0 Try it

1 Download

2 Build

3 Example

3.1 Example output

4 Definitions

4.1 Function definitions

Try it

Open in GitHub Codespaces

Wait for a few moments, then click the play button on the bottom of the window. This will run the example program.

Download

To download log, execute the following command

$ git clone https://github.com/Jacob-C-Smith/log

Build

To build on UNIX like machines, execute the following commands in the same directory

$ cd log
$ cmake .
$ make

This will build the example program, the tester program, and dynamic / shared libraries

To build log for Windows machines, open the base directory in Visual Studio, and build your desired target(s)

Example

To run the example program, execute this command

$ ./log_example

Example output

Source

Definitions

Function definitions

// Initializer
int log_init ( const char *const path );

// Debug logging
int log_error   ( const char *const format, ... );
int log_warning ( const char *const format, ... );
int log_info    ( const char *const format, ... );

About

Log errors, warnings, and information with pretty printing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published