Changeset f039dba in mainline for uspace/srv/logger/logger.h
- Timestamp:
- 2012-08-17T09:57:27Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1912b0c
- Parents:
- f72ae3b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logger.h
rf72ae3b rf039dba 48 48 #define LOG_LEVEL_USE_DEFAULT (LVL_LIMIT + 1) 49 49 50 typedef struct { 51 const char *name; 52 log_level_t logged_level; 53 } logger_sublog_t; 50 typedef struct logger_log logger_log_t; 54 51 55 52 typedef struct { 56 const char *name;57 53 FILE *logfile; 54 } logger_dest_t; 55 56 struct logger_log { 57 link_t link; 58 59 char *name; 60 char *full_name; 61 logger_log_t *parent; 58 62 log_level_t logged_level; 59 size_t sublog_count;60 logger_sublog_t sublogs[MAX_SUBLOGS];63 logger_dest_t *dest; 64 }; 61 65 62 link_t link; 63 } logger_toplevel_log_t; 64 65 66 logger_toplevel_log_t *find_or_create_toplevel_log(const char *); 67 logger_toplevel_log_t *find_toplevel_log(sysarg_t); 68 bool shall_log_message(logger_toplevel_log_t *, sysarg_t, log_level_t); 69 int add_sub_log(logger_toplevel_log_t *, const char *, sysarg_t *); 66 logger_log_t *find_log_by_name(const char *name); 67 logger_log_t *find_or_create_log(const char *name, sysarg_t parent); 68 logger_log_t *find_log_by_id(sysarg_t); 69 bool shall_log_message(logger_log_t *, log_level_t); 70 70 71 71 log_level_t get_default_logging_level(void);
Note:
See TracChangeset
for help on using the changeset viewer.