Skip to content

Commit

Permalink
Updated example code
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed May 10, 2023
1 parent 8192549 commit 578f5bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions example/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ int main()
slog_note("Note message with integer variable: %d", nInteger);

/* Trace thread id and print in output */
slog_config_get(&cfg);
cfg.nTraceTid = 1;
slog_config_set(&cfg);

Expand All @@ -99,7 +98,6 @@ int main()
slog_trace("Test log with disabled tag");

/* Enable file logger and color the whole log output instead of coloring only tags*/
slog_config_get(&cfg);
cfg.eColorFormat = SLOG_COLORING_FULL;
cfg.nToFile = 1;
slog_config_set(&cfg);
Expand All @@ -120,17 +118,13 @@ int main()
slog_fatal("Fatal message also throws source location");

/* Enable date + time in output */
slog_config_get(&cfg);
cfg.eDateControl = SLOG_DATE_FULL;
slog_config_set(&cfg);
slog_debug("Debug message with time and date");

/* Disable output coloring*/
slog_config_get(&cfg);
cfg.eColorFormat = SLOG_COLORING_DISABLE;
slog_config_set(&cfg);


slog_debug("Disabled output coloring");

/* Just throw source location without output message */
Expand Down

0 comments on commit 578f5bf

Please sign in to comment.