usb_moded
0.86.0+mer57
|
#include <stdbool.h>
#include <stdarg.h>
#include <syslog.h>
Go to the source code of this file.
Functions | |
void | log_emit_va (const char *file, const char *func, int line, int lev, const char *fmt, va_list va) |
int | log_get_level (void) |
void | log_set_level (int lev) |
bool | log_p (int lev) |
int | log_get_type (void) |
const char * | log_get_name (void) |
void | log_set_name (const char *name) |
void | log_set_lineinfo (bool lineinfo) |
bool | log_get_lineinfo (void) |
void | log_init (void) |
Copyright (c) 2010 Nokia Corporation. All rights reserved. Copyright (c) 2016 - 2020 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.
This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file usb_moded-log.h.
void log_emit_va | ( | const char * | file, |
const char * | func, | ||
int | line, | ||
int | lev, | ||
const char * | fmt, | ||
va_list | va | ||
) |
Print the logged messages to the selected output
file | Source file name |
func | Function name |
line | Line in source file |
lev | The wanted log level |
fmt | The message format string |
va | Arguments for the format string |
Definition at line 210 of file usb_moded-log.c.
int log_get_level | ( | void | ) |
Get the currently set logging level
Definition at line 327 of file usb_moded-log.c.
bool log_get_lineinfo | ( | void | ) |
Test if line info should be included in logging
Definition at line 401 of file usb_moded-log.c.
const char* log_get_name | ( | void | ) |
Get the currently set logging name
Definition at line 374 of file usb_moded-log.c.
int log_get_type | ( | void | ) |
Get the currently set logging type
Definition at line 356 of file usb_moded-log.c.
void log_init | ( | void | ) |
Initialize logging
Definition at line 407 of file usb_moded-log.c.
bool log_p | ( | int | lev | ) |
Test if logging should be done at given level
lev | The logging level to query |
Definition at line 347 of file usb_moded-log.c.
void log_set_level | ( | int | lev | ) |
Set the logging level
lev | The wanted logging level |
Definition at line 336 of file usb_moded-log.c.
void log_set_lineinfo | ( | bool | lineinfo | ) |
Enable/disable the logging line info
lineinfo | true to enable line info, false to disable |
Definition at line 392 of file usb_moded-log.c.
void log_set_name | ( | const char * | name | ) |
Set the logging name
name | The wanted logging name |
Definition at line 383 of file usb_moded-log.c.