Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/poisonousjohn/poison_log
C++ log utilities that I usually use in my projects
https://github.com/poisonousjohn/poison_log
Last synced: 5 days ago
JSON representation
C++ log utilities that I usually use in my projects
- Host: GitHub
- URL: https://github.com/poisonousjohn/poison_log
- Owner: PoisonousJohn
- License: mit
- Created: 2014-09-04T10:47:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-01T19:49:53.000Z (almost 9 years ago)
- Last Synced: 2023-03-22T20:42:38.615Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
poison_log
==========C++ log utilities that I usually use in my projects
##Supports
All systems with working cout. Also supports android logcat##Requirements
- C++11
- Boost.Format
- Boost Thread (only for Android and if you've enabled synchronization)##Usage
```cpp
#includeusing namespace poison::utils;
int main(int argc, const char * argv[])
{
setLogLevel(LogLevel::LOG_DEBUG);
try {
DBG("test %d", 1);
DBG("test %d");
} catch (const boost::io::too_few_args& e) {
ERR("too few args");
} catch (...) {
ERR("unknown exception");
}
return 0;
}```
**Output**
```
2014-09-04 15:41:13 [ D] test 1
2014-09-04 15:41:13 [ E] too few args
```