Sets where logger should output
log_start(int to_console, int to_file, int date_file)
Output: '[12:30:00] [TAG/file:line] Text'
TAG: INFO - log_info(const char *format, ...)
TAG: ERROR - log_error(char *format, ...)
TAG: WARN - log_warn(const char *format, ...)
TAG: Custom - log_custom(TAG, const char *format, ...)
Normal array:
TAG: ARRAY - log_array(array, array_type)
Pointer array, will catch null pointer:
TAG: ARRAY - log_pointer_array(array, size, array_type)
Output: '[12:30:00] [TAG/file] 'array name' = {*}'
Array type:
A_BOOL - Both int and _Bool supported
A_SHORT
A_INT
A_LONG
A_FLOAT
A_DOUBLE
Checks if any val is NULL and logs error if NULL
catch_null(void* val)
Input ex.: val - 1, min_length - 4
Output: '0001'
print_format_int(STREAM stream, int val, int min_length)
Output: '12:30:00' - H:M:S
print_time(STREAM stream)