Turnstone Operating System
Loading...
Searching...
No Matches
logging.64.c File Reference

logging implementations More...

#include <logging.h>
#include <windowmanager.h>

Functions

 MODULE ("turnstone.lib.logging")
 
boolean_t logging_need_logging (logging_modules_t module, logging_level_t level)
 
void logging_set_level (logging_modules_t module, logging_level_t level)
 
void logging_printlog (uint64_t module, uint64_t level, const char_t *file_name, uint64_t line_no, const char_t *format,...)
 kernel logging function More...
 

Variables

const char_t *const logging_module_names []
 
const char_t *const logging_level_names []
 
logging_level_t logging_module_levels []
 

Detailed Description

logging implementations

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ logging_printlog()

void logging_printlog ( uint64_t  module,
uint64_t  level,
const char_t file_name,
uint64_t  line_no,
const char_t format,
  ... 
)

kernel logging function

Parameters
[in]modulemodule name
See also
logging_modules_e
Parameters
[in]levellog level
See also
logging_level_e
Parameters
[in]line_noline number
[in]file_namefile name
[in]formatformat string
[in]...arguments for format in msg

Variable Documentation

◆ logging_level_names

const char_t* const logging_level_names[]
Initial value:
= {
"PANIC" ,
"FATAL" ,
"ERROR" ,
"WARNING" ,
"INFO" ,
"DEBUG" ,
"LEVEL6" ,
"VERBOSE" ,
"LEVEL8" ,
"TRACE" ,
}