Skip to content

Commit

Permalink
Minor README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Dec 7, 2021
1 parent 40543f2 commit 7c366f5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

Just Another Logging library for C++17.

## Features

* Synchronous and asynchronous logging
* Fixed log levels: Debug, Info, Warning, Error, Critical
* Five fixed log levels: Debug, Info, Warning, Error, Critical
* Custom log scopes (categories).
* Custom log sinks and some predefined ones.
* Allows multiple independent loggers
Expand All @@ -17,9 +19,11 @@ Just Another Logging library for C++17.
* Jalog-style: `log("This is Jalog: ", 12, " and ", 3.141592);`
* `std::ostream`-like: `log << "This and " << 42;`
* `printf`-like: `log("Crushing it since %d", 1971);`
* raw (which allows you to provide your own style, say `std::fmt`)
* raw (which allows you to provide your own style, say `std::format`)

## Example

Here is a small snippet showcasing some of the library's features:
A small snippet showcasing some of the library's features:

*It also exists as a complete and buildable example [here](example/e-BasicShowcase.cpp).*

Expand All @@ -38,8 +42,6 @@ Person alice = {"Alice", 34};
JALOG(Error, "Log types with custom ostream output: ", alice);

JALOG_PRINTF(Critical, "Log printf style: %d, %.3f, %s", 43, 3.14159, str.c_str());

return 0;
```
This will produce an output similar to this:
Expand Down

0 comments on commit 7c366f5

Please sign in to comment.