libosmocore 1.13.1.1-afb4 Osmocom core library

Macros | Functions
logging_systemd.c File Reference
Osmocom logging framework
`#include <stdio.h>`
`#include <syslog.h>`
`#include <systemd/sd-journal.h>`
`#include "config.h"`
`#include <osmocom/core/talloc.h>`
`#include <osmocom/core/utils.h>`
`#include <osmocom/core/logging.h>`

## Macros
#define | SD_JOURNAL_SUPPRESS_LOCATION

## Functions
static int | logp2syslog_level (unsigned int level)
static void | _systemd_output (struct log_target *target, unsigned int level, const char *log)
static void | _systemd_raw_output (struct log_target *target, int subsys, unsigned int level, const char *file, int line, int cont, const char *format, va_list ap)
struct log_target * | log_target_create_systemd (bool raw)
| Create a new logging target for systemd journal logging. More...
void | log_target_systemd_set_raw (struct log_target *target, bool raw)
| Change meta information handling of an existing logging target. More...

## Function Documentation

## ◆ logp2syslog_level()

static int logp2syslog_level | ( | unsigned int | level | ) |
| static

References level, LOGL_ERROR, LOGL_FATAL, LOGL_INFO, and LOGL_NOTICE.

Referenced by _systemd_output(), and _systemd_raw_output().