Added functionallity to modify the global and stream-local logging masks as well as a function to retrieve a reference to the stream instance
This commit is contained in:
@@ -43,9 +43,13 @@ typedef struct logger_stream_t {
|
|||||||
void initialize_logger();
|
void initialize_logger();
|
||||||
void terminate_logger ();
|
void terminate_logger ();
|
||||||
|
|
||||||
|
void logger_set_global_mask (LOG_LEVEL mask);
|
||||||
|
void logger_set_mask(u8 index, LOG_LEVEL mask);
|
||||||
|
|
||||||
FILE* logger_stream_get_file(logger_stream_t* state);
|
FILE* logger_stream_get_file(logger_stream_t* state);
|
||||||
u8 logger_add_stream(FILE* output, LOG_LEVEL mask, LOG_STREAM_FLAG flags);
|
u8 logger_add_stream(FILE* output, LOG_LEVEL mask, LOG_STREAM_FLAG flags);
|
||||||
void logger_remove_stream(u8 index);
|
void logger_remove_stream(u8 index);
|
||||||
|
logger_stream_t* logger_get_stream(u8 index);
|
||||||
u8 logger_find_stream(FILE* target);
|
u8 logger_find_stream(FILE* target);
|
||||||
|
|
||||||
void basalt_log(const LOG_LEVEL level, const char* msg, ...);
|
void basalt_log(const LOG_LEVEL level, const char* msg, ...);
|
||||||
|
|||||||
Reference in New Issue
Block a user