https://github.com/wiright/plog
Log in your code with plog!
https://github.com/wiright/plog
c
Last synced: 2 months ago
JSON representation
Log in your code with plog!
- Host: GitHub
- URL: https://github.com/wiright/plog
- Owner: WiRight
- License: mit
- Created: 2018-05-24T09:55:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T05:50:54.000Z (about 8 years ago)
- Last Synced: 2025-02-14T23:18:30.100Z (over 1 year ago)
- Topics: c
- Language: C++
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# plog
[](https://gitter.im/plog_chat/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Log in your code with plog!
## How to use
Just include a lib
```c
#include "plog.h"
```
And in your code write following:
```c
plogInit(); // Initialize component
infoLog("Log Worked!"); // Say something in log!
plogDestroy(); // Destroy component
```
Thats is it!
#### Log types
- **infoLog** : Some info
- **assertLog** : Some info
- **warningLog** : Some info
- **debugLog** : Some info
#### Features
You can change log format!
But remember, you can't change count parameters
By default time format is "_DAY_._MONTH_._YEAR_ *HOURS*:*MINUTES*:*SECONDS*"
By default log format is "[_[timeFormat]_] [**LOG_TYPE**] {_fileName_} {_functionName_} {_line_}: **log message**"