Skip to content

Commit

Permalink
Updated docu because of new macro names
Browse files Browse the repository at this point in the history
  • Loading branch information
crapp committed May 21, 2016
1 parent 096fb54 commit e4229fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ namespace con = ealogger::constants;
std::unique_ptr<eal::Logger> log = std::unique_ptr<eal::Logger>(
new eal::Logger());
log->set_min_lvl(con::LOGGER_SINK::CONSOLEm, con::LOG_LEVEL::INFO);
log->debug("Do you see me?");
log->info("An info message")
log->warn("A warning message");
log->error("An error message");
log->fatal("A fatal message");
log->eal_debug("Do you see me?");
log->eal_info("An info message")
log->eal_warn("A warning message");
log->eal_error("An error message");
log->eal_fatal("A fatal message");
```
This will output:
```shell
Expand Down
6 changes: 4 additions & 2 deletions include/ealogger/ealogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace ealogger
* int main() {
* ealogger::Logger logger;
* logger.init_console_sink();
* logger.debug("My application is just awesome");
* logger.eal_debug("My application is just awesome");
* return 0;
* }
* @endcode
Expand Down Expand Up @@ -180,7 +180,9 @@ class Logger
* for the different log levels. You can of course call this method yourself
* @code
* mylogger.write_log("This is a warning", ealogger::constants::LOG_LEVEL::WARNING,
* __FILE__, __LINE__, __func__)
* __FILE__, __LINE__, __func__);
* mylogger.write_log("This is a warning without line file and func",
* ealogger::constants::LOG_LEVEL::WARNING);
* @endcode
*/
void write_log(std::string msg, ealogger::constants::LOG_LEVEL lvl,
Expand Down

0 comments on commit e4229fc

Please sign in to comment.