Lines Matching full:log

16 /** Log levels supported, ranging from most to least important */
35 * Log categories supported. Most of these correspond to uclasses (i.e.
54 /* Helper to cast a uclass ID to a log category */
61 * _log() - Internal function to emit a new log record
63 * @cat: Category of log record (indicating which subsystem generated it)
64 * @level: Level of log record (indicating its severity)
65 * @file: File name of file where log record was generated
66 * @line: Line number in file where log record was generated
67 * @func: Function where log record was generated
68 * @fmt: printf() format string for log record
70 * @return 0 if log record was emitted, -ve on error
89 #if CONFIG_IS_ENABLED(LOG)
95 /* Emit a log record if the level is less that the maximum */
96 #define log(_cat, _level, _fmt, _args...) ({ \ macro
116 #if !_DEBUG && CONFIG_IS_ENABLED(LOG)
121 log(LOG_CATEGORY, LOGL_DEBUG, fmt, ##args); \
166 log(LOG_CATEGORY, LOGL_ERR, "returning err=%d\n", __ret); \
172 log(LOG_CATEGORY, LOGL_ERR, "%s: returning err=%d\n", _msg, \
182 * struct log_rec - a single log record
184 * Holds information about a single record in the log
188 * Memebers marked as 'allocated' are allocated (e.g. via strdup()) by the log
193 * @file: Name of file where the log record was generated (not allocated)
194 * @line: Line number where the log record was generated
195 * @func: Function where the log record was generated (not allocated)
196 * @msg: Log message (allocated)
210 * struct log_driver - a driver which accepts and processes log records
217 * emit() - emit a log record
219 * Called by the log system to pass a log record to a particular driver
226 * struct log_device - an instance of a log driver
255 * struct log_filter - criterial to filter out log messages
264 * @max_level: Maximum log level to allow
267 * @sibling_node: Next filter in the list of filters for this log device
281 /* Handle the 'log test' command */
285 * log_add_filter() - Add a new filter to a log device
292 * @max_level: Maximum log level to allow
302 * log_remove_filter() - Remove a filter from a log device
312 #if CONFIG_IS_ENABLED(LOG)
314 * log_init() - Set up the log system ready for use