diff options
| author | Clement Sibille <clements+github@lisible.xyz> | 2024-06-01 05:34:26 +0900 | 
|---|---|---|
| committer | Clement Sibille <clements+github@lisible.xyz> | 2024-06-01 05:34:26 +0900 | 
| commit | 940b4a89f0c54425c52ff8b1b63a848675a65f3d (patch) | |
| tree | 90f4adcb156a33b2327c42c44972c719bc14e825 | |
| parent | 3315de2269a01d296628a2773de6f085d75e3840 (diff) | |
Allow setting log level at runtime
| -rw-r--r-- | lisiblepng-bin/src/main.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lisiblepng-bin/src/main.c b/lisiblepng-bin/src/main.c index 730ae9a..47e1722 100644 --- a/lisiblepng-bin/src/main.c +++ b/lisiblepng-bin/src/main.c @@ -1,5 +1,6 @@  #include <errno.h>  #include <lisiblepng.h> +#include <lisiblestd/log.h>  #include <stdio.h>  #include <string.h> @@ -7,6 +8,7 @@  #define LOGN(fmt, ...) fprintf(stderr, fmt "\n", __VA_ARGS__)  int main(int argc, char **argv) { +  lstd_log_init();    if (argc != 2) {      LOG0("Usage: lisiblepng <png filepath>");      return 1;  | 
