sfendrich / tinylog Goto Github PK
View Code? Open in Web Editor NEWMinimalistic logging library for C++
License: Do What The F*ck You Want To Public License
Minimalistic logging library for C++
License: Do What The F*ck You Want To Public License
TinyLog - Minimalistic logging library for C++ (c) 2012 Sascha Fendrich License: This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details. Description: TinyLog is a minimalistic logging library for C++. It's purpose is to provide a lightweight and easy to use logging capability for small software projects. It supports a single global logger that writes messages to a std::ostream with log4j-style log levels: kOff < kFatal < kError < kWarn < kInfo < kDebug < kTrace < kAll. The default output stream is std::cerr. It can be changed with TinyLog::SetStream (stream). The current setting can be retrieved with TinyLog::stream (). The default log level is kInfo and can be changed with TinyLog::SetLevel (level). The current level can be retrieved with TinyLog::level (). A message is sent at a certain level to the logger by streaming it with << to the macros FATAL, ERROR, WARN, INFO, DEBUG, or TRACE. If the current log level is greater or equal to the message's level then a time stamp, the file name, the line number, the message level, and the message are written to the output stream. Logging a message should always end with '<< std::endl;'. Example: ERROR << "A nice error message." << variable_info << std::endl; Look into tiny_log_test.cpp for more examples. Compiling To build the library just type 'make'. The test example can be built with 'make test'. For cleanup type 'make clean'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.