Loading...
Searching...
No Matches
application.h
Go to the documentation of this file.
#pragma once
#include <osmocom/core/defs.h>
struct log_info;
struct log_target;
extern struct log_target *osmo_stderr_target;
void osmo_init_ignore_signals(void);
int osmo_init_logging(const struct log_info *)
OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx");
int osmo_init_logging2(void *ctx, const struct log_info *log_info);
int osmo_daemonize(void);
osmo_stderr_target
struct log_target * osmo_stderr_target
the default logging target, logging to stderr
Definition application.c:82
osmo_init_ignore_signals
void osmo_init_ignore_signals(void)
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
Definition application.c:90
osmo_init_logging2
int osmo_init_logging2(void *ctx, const struct log_info *log_info)
Definition application.c:117
osmo_init_logging
int osmo_init_logging(const struct log_info *) OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx")
Initialize the osmocom logging framework.
Definition application.c:112
osmo_daemonize
int osmo_daemonize(void)
Turn the current process into a background daemon.
Definition application.c:140
defs.h
General definitions that are meant to be included from header files.
OSMO_DEPRECATED
#define OSMO_DEPRECATED(text)
Set the deprecated attribute with a message.
Definition defs.h:41
log_info
Logging configuration, passed to log_init.
Definition logging.h:259
log_target
Definition logging.h:304