diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-23 18:47:12 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-23 18:47:12 +0100 |
commit | d7857c4a1abc46ed1c11513a4a44f633370b27b3 (patch) | |
tree | 8908376eb7005c10f987512405cef20a96fe2a06 /examples/print-simple.c | |
parent | 99faa9f979a85bee79f771eaca7e20a55a65c3d6 (diff) | |
download | embedlog-d7857c4a1abc46ed1c11513a4a44f633370b27b3.tar.gz embedlog-d7857c4a1abc46ed1c11513a4a44f633370b27b3.tar.bz2 embedlog-d7857c4a1abc46ed1c11513a4a44f633370b27b3.zip |
make embedlog print to stderr by default
Diffstat (limited to 'examples/print-simple.c')
-rw-r--r-- | examples/print-simple.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/print-simple.c b/examples/print-simple.c index d3b3956..17e062e 100644 --- a/examples/print-simple.c +++ b/examples/print-simple.c @@ -8,19 +8,13 @@ int main(void) { /* - * first we nned to initialize logger to known state + * first we nned to initialize logger to known state, embedlog + * will print to stdout by default */ el_init(); /* - * to use logger you need to enable at least one output, without it logs - * will be printed to /dev/null - */ - - el_option(EL_OUT, EL_OUT_STDERR); - - /* * now we can simply print messages like we would do it with ordinary * printf - we just need to log level macro as a first argument */ |