stumpless 2.2.0
Loading...
Searching...
No Matches
stumpless.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2
3/*
4 * Copyright 2018-2024 Joel E. Anderson
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
175#ifndef __STUMPLESS_H
176#define __STUMPLESS_H
177
178#include <stumpless/config.h>
179#include <stumpless/element.h>
180#include <stumpless/entry.h>
181#include <stumpless/error.h>
182#include <stumpless/facility.h>
183#include <stumpless/filter.h>
184#include <stumpless/generator.h>
185#include <stumpless/id.h>
187#include <stumpless/level/crit.h>
190#include <stumpless/level/err.h>
191#include <stumpless/level/info.h>
195#include <stumpless/log.h>
196#include <stumpless/memory.h>
197#include <stumpless/option.h>
198#include <stumpless/param.h>
199#include <stumpless/severity.h>
200#include <stumpless/target.h>
206#include <stumpless/version.h>
207#include <stumpless/priority.h>
208#include <stumpless/prival.h>
209
210#ifdef STUMPLESS_CHAIN_TARGETS_SUPPORTED
215# include <stumpless/target/chain.h>
216#endif
217
218#ifdef STUMPLESS_JOURNALD_TARGETS_SUPPORTED
225#endif
226
227#ifdef STUMPLESS_NETWORK_TARGETS_SUPPORTED
237#endif
238
239#ifdef STUMPLESS_SOCKET_TARGETS_SUPPORTED
245#endif
246
247#ifdef STUMPLESS_SQLITE3_TARGETS_SUPPORTED
253#endif
254
255#ifdef STUMPLESS_WINDOWS_EVENT_LOG_TARGETS_SUPPORTED
261# include <stumpless/target/wel.h>
262# include <stumpless/windows/default_events.h>
263#endif
264
265#endif /* __STUMPLESS_H */
Macro functions that log messages and entries at the alert level.
Buffer targets provide the simple capability to write logs into a character buffer.
Chains allow logs to be sent to a group of targets.
Configuration information to provide to code built with the library.
Macro functions that log messages and entries at the crit level.
Macro functions that log messages and entries at the debug level.
Types and functions for creating and modifying elements.
Macro functions that log messages and entries at the emerg level.
Types and functions for creating and modifying entries.
Macro functions that log messages and entries at the err level.
Error codes and functions for detecting and assessing them.
Facility codes for classifying log entries.
File targets allow logs to be sent to a specified file.
Filters that can be used to control which entries are sent to targets at runtime.
Function targets allow log entries to be sent to a custom function, making it possible to implement a...
Generic functionality to be used with STUMPLESS_FOREACH macros to allow for more generic definition o...
The identification for targets within the library.
Macro functions that log messages and entries at the info level.
Journald targets send messages to a systemd journald service.
Functions that help when using journald targets.
Convenience functions for creating and writing simple log entries.
Functions for controlling memory allocation during execution.
Network targets allow logs to be sent over a network to a remote log collector or relay.
Macro functions that log messages and entries at the notice level.
Options that can be used to modify the behavior of Stumpless components.
Types and functions for creating and modifying params.
Priority value (PRIVAL) represents both the Facility and Severity values.
Functions for working with privals.
Severity codes for classifying log entries.
Socket targets allow logs to be sent to a Unix domain socket.
SQLite3 targets allow logs to be sent to a SQLite3 database.
Functions for working with stream targets (that is, FILE pointers).
General types and functions for working with all targets.
Macro functions that log messages and entries for source tracing.
Runtime information about the library.
Macro functions that log messages and entries at the warning level.
Functions for working with Windows Event Log (WEL) targets.
Functions necessary when using Windows Event Log targets.