|
|
@ -17,6 +17,7 @@ int main() { |
|
|
|
log_info("Some information: %d %s", 123, "fr"); |
|
|
|
log_info("Some information: %d %s", 123, "fr"); |
|
|
|
log_error("%s", "error message"); |
|
|
|
log_error("%s", "error message"); |
|
|
|
log_debug("Debug won't be printed because the flag was not set"); |
|
|
|
log_debug("Debug won't be printed because the flag was not set"); |
|
|
|
|
|
|
|
log_with_prefix("[Custom prefix] ", "5+(4*90)==%d", 5+(4*90)); |
|
|
|
|
|
|
|
|
|
|
|
// Creates file with fopen's mode and sets log output to it |
|
|
|
// Creates file with fopen's mode and sets log output to it |
|
|
|
create_log_file("logs.log", "w"); |
|
|
|
create_log_file("logs.log", "w"); |
|
|
|