btnut/btnode/include/terminal/log-cmds.h File Reference


Detailed Description

Terminal commands for accessing the event logger.

Author:
Kevin Martin <kevmarti@tik.ee.ethz.ch>
Date:
2006/03/23
The following commands are available

See also:
logging.h for further details

#include <stdio.h>

Functions

void log_cmds_init (FILE *uart)
 Initializes logging commands.
char log_cmds_set_verbosity (u_char class, u_char mask)
 Sets log verbosity of the class.
int log_cmds_verbosity_on (void)


Function Documentation

void log_cmds_init ( FILE uart  ) 

Initializes logging commands.

Parameters:
uart Pointer to the terminal uart to use.

char log_cmds_set_verbosity ( u_char  class,
u_char  mask 
)

Sets log verbosity of the class.

Call log_cmds_init() first in order to use them.

Parameters:
class Log class to filter
mask defines the log levels to consider
Returns:
0 if succeeded, -1 if class is not available


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1