Section: Linux Programmer's Manual (3)
Return to Main Contents
xbee_err xbee_log(struct xbee *xbee, int minLevel, const char *format, ...);
provides a means for you to write messages to libxbee's log.
is required, and will indicate which log to use
is a value that determines whether the message will be output or not.
The lower this value, the more likely.
libxbee defaults to a log level of 0, but this may be changed by specifying
at build time, by specifying
in the environment at run-time, or by calling
These options are applied in this order.
- format, ...
these options are exactly the same as those used by
You do not need to add a newline ('\n') character to the end, libxbee will do this for you.
On success this function will return XBEE_ENONE, otherwise an error number from
enum xbee_errors (as specified in <xbee.h>)
struct xbee *xbee;
/* initialize xbee, using xbee_setup() */
xbee_log(xbee, -1, "Hello World!");
DEV: -1#[main.c:14] main() 0x82dd128: Hello World!
indicates that this was a message logged from outside libxbee (within your program)
indicates the log level for the message
indicates the filename and line number
indicates the function that the call to
was made from
indicates the address of the libxbee instance
- Hello World!
is the message
Attie Grande <firstname.lastname@example.org>
- Return Value
- SEE ALSO
This document was created by
using the manual pages.
Time: 08:29:36 GMT, October 09, 2015