1#ifndef __SQLITE3TARGET_HPP
2#define __SQLITE3TARGET_HPP
4#include <stumpless/target.h>
5#include <stumpless/Entry.hpp>
A log entry.
Definition Entry.hpp:19
Definition Sqlite3Target.hpp:9
int GetMask(void)
Gets the log mask of this target.
int GetOption(int option)
Gets the given option for this target.
bool IsOpen(void)
Checks to see if this target is open.
Sqlite3Target(const char *name)
Creates a new target for the given database.
Sqlite3Target & SetFilter(stumpless_filter_func_t filter)
Sets the filter used by this target to determine whether entries should be logged to it.
Sqlite3Target & SetDefaultAppName(const char *app_name)
Sets the default app name for this target.
const char * GetName(void)
Returns the name of this target.
Sqlite3Target & UnsetOption(int option)
Unsets an option on a target.
Sqlite3Target & SetOption(int option)
Sets an option on a target.
Sqlite3Target & Log(const char *message,...)
Writes a string message to this target.
Sqlite3Target(struct stumpless_target *equivalent)
stumpless_filter_func_t GetFilter(void)
Returns the current filter used by this target to determine if entries should be allowed through it.
Sqlite3Target & SetMask(int mask)
Sets the log mask of a target.
const char * GetDefaultAppName(void)
Returns the default app name used by this target.
~Sqlite3Target(void)
Closes this target and releases all memory and other resources held by it.
void Open(void)
Opens this target if it has been paused.
Sqlite3Target & Log(int priority, const char *message,...)
Writes a log message with the given priority to this target.
const char * GetDefaultMsgid(void)
Returns the default msgid used by this target.
Facility GetDefaultFacility(void)
Gets the default facility of this target.
Sqlite3Target & Log(Facility facility, Severity severity, const char *message,...)
Writes a log message with the given facility and severity to this target.
Sqlite3Target & Log(Entry entry)
Writes an Entry to this target.
Sqlite3Target & SetDefaultMsgid(const char *msgid)
Sets the default message id for this target.
Sqlite3Target & SetDefaultFacility(int facility)
Sets the default facility of the target.
struct stumpless_target * equivalent
Definition Sqlite3Target.hpp:12
Definition AddressFailure.hpp:7
Facility
Facilities (as defined in RFC 5424) describe the general classification of an event.
Definition Facility.hpp:17
Severity
Severities (as defined in RFC 5424) describe the level of importance of a given log entry.
Definition Severity.hpp:15