| 17 | |
| 18 | using namespace NanoLog::LogLevels; |
| 19 | int main() { |
| 20 | NANO_LOG(NOTICE, "Simple log message with 0 parameters"); |
| 21 | NANO_LOG(NOTICE, "This is a string %s", "aaa"); |
| 22 | |
| 23 | NANO_LOG(DEBUG, "Debug level"); |
| 24 | NANO_LOG(NOTICE, "Notice Level"); |
| 25 | NANO_LOG(WARNING, "Warning Level"); |
| 26 | NANO_LOG(ERROR, "Error Level"); |
| 27 | |
| 28 | NANO_LOG(NOTICE, "I have an integer %d", 2); |
| 29 | NANO_LOG(NOTICE, "I have a uint64_t %lu", 2); |
| 30 | NANO_LOG(NOTICE, "I have a double %lf", 2.0); |
| 31 | NANO_LOG(NOTICE, "I have a couple of things %d, %f, %u, %s", |
| 32 | 1, 2.0, 3, "s4"); |
| 33 | return 0; |
| 34 | } |