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 | |
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')
-rw-r--r-- | examples/print-memory.c | 1 | ||||
-rw-r--r-- | examples/print-options.c | 1 | ||||
-rw-r--r-- | examples/print-simple.c | 10 |
3 files changed, 2 insertions, 10 deletions
diff --git a/examples/print-memory.c b/examples/print-memory.c index b4c5ce9..29c770c 100644 --- a/examples/print-memory.c +++ b/examples/print-memory.c @@ -19,7 +19,6 @@ int main(void) } el_init(); - el_option(EL_OUT, EL_OUT_STDERR); el_pmemory(ELI, ascii, sizeof(ascii)); el_pmemory(ELI, s, sizeof(s)); diff --git a/examples/print-options.c b/examples/print-options.c index 2c619cb..abfb05c 100644 --- a/examples/print-options.c +++ b/examples/print-options.c @@ -12,7 +12,6 @@ int main(void) struct el_options opts; el_init(); - el_option(EL_OUT, EL_OUT_STDERR); el_option(EL_PRINT_LEVEL, 0); el_print(ELI, "We can disable information about log level\b"); 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 */ |