Skip to content

Commit

Permalink
Update Cpp docs on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 14, 2023
1 parent f9c9496 commit ff39ba4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2629,15 +2629,15 @@ The reactor-cpp library provides logging utilities in [logging.hh](https://githu

In particular, reactor-cpp provides the following logging interfaces:

- `reactor::Debug()`: for verbose debug messages
- `reactor::Info()`: for info messages of general interest, info is the default severity level
- `reactor::Warning()`: for warning messages
- `reactor::Error()`: for errors
- `reactor::log::Debug()`: for verbose debug messages
- `reactor::log::Info()`: for info messages of general interest, info is the default severity level
- `reactor::log::Warning()`: for warning messages
- `reactor::log::Error()`: for errors

These utilities can be used analogues to `std::cout`. For instance:

```lf-cpp
reactor::Info() << "Hello World! It is " << get_physical_time();
reactor::log::Info() << "Hello World! It is " << get_physical_time();
```

Note that unlike `std::cout` the new line delimiter is automatically added to the end of the message.
Expand Down

0 comments on commit ff39ba4

Please sign in to comment.