https://github.com/c0de4un/zero-logger
zeroEngine Logger Code-Base
https://github.com/c0de4un/zero-logger
cpp cxx log logger logging-library
Last synced: 10 months ago
JSON representation
zeroEngine Logger Code-Base
- Host: GitHub
- URL: https://github.com/c0de4un/zero-logger
- Owner: c0de4un
- License: mit
- Created: 2021-10-29T19:58:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-11T13:09:34.000Z (over 4 years ago)
- Last Synced: 2025-07-03T05:04:23.637Z (12 months ago)
- Topics: cpp, cxx, log, logger, logging-library
- Language: C++
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zero-logger
zeroEngine Logger - Part of zeroSDK
# Features
* basic log-levels
* lightweight
* unicode support by native wchar_t
* multibyte chars support
* platform-specific API support (DebugOutput, Logcat, etc)
* dynamic toggle flag
# Minimum Requirements
* C++ 14
* CMake 3.16
# Examples
* Initialization with custom handler
```c++
int main()
{
zLog::Initialize( new MyCustomLogHandler() );
#if defined( DEBUG ) || defined( ZERO_DEBUG ) // DEBUG
zLog::info( u8"Hello World !" );
#endif // DEBUG
return 0;
}
```
* Simple Print
```c++
int main()
{
#if defined( DEBUG ) // DEBUG
const std::wstring unicodeStr( L"Здравствуй дивный мир !" );
zLog::print_w( unicodeStr.c_str(), zELogLevel::INFO );
#endif // DEBUG
return 0;
}
```