https://github.com/cloudcodingspace/slog
A simple logger written in pure C without any external dependencies
https://github.com/cloudcodingspace/slog
c cross-platform library logger open-source
Last synced: 11 months ago
JSON representation
A simple logger written in pure C without any external dependencies
- Host: GitHub
- URL: https://github.com/cloudcodingspace/slog
- Owner: CloudCodingSpace
- Created: 2024-12-13T13:58:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-28T10:45:08.000Z (over 1 year ago)
- Last Synced: 2024-12-28T11:25:01.697Z (over 1 year ago)
- Topics: c, cross-platform, library, logger, open-source
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About slog
slog is a simple logger. It is mainly created for the easiness for it to be used. slog doesn't uses any
platform dependent code. It only uses the C standard library.
# Build instructions
To include and build it in your cmake project, then simply add this repo and then from your project's main
**CMakeLists.txt** file, simply add this repo as a subdirectory using **add_subdirectory** function in cmake.
If you are not using cmake, then simply add **the slog/slog.h && slog/slog.c** file in your project and you are done!
# Featured of slog
The features are :-
- Can print coloured text
- For logging, it needs a severity to better identify the use of the log. If you don't wanna provide any severity, then use **SLOG_SEVERITY_CUSTOM**
# TODO
- Allow custom patterns for the log
- Log time along with the message
- Log to a file