stumpless 2.2.0
Loading...
Searching...
No Matches
option.h File Reference

Options that can be used to modify the behavior of Stumpless components. More...

Go to the source code of this file.

Macros

#define STUMPLESS_OPTION_PID   1
 Option to include the PID in stumpless messages.
 
#define STUMPLESS_OPTION_CONS   (1<<1)
 Option to log to system console if writing to the target stream fails.
 
#define STUMPLESS_OPTION_NDELAY   (1<<2)
 Not currently supported.
 
#define STUMPLESS_OPTION_ODELAY   (1<<3)
 Not currently supported.
 
#define STUMPLESS_OPTION_NOWAIT   (1<<4)
 No need to wait for the child processes that may have been created while logging the messages.
 
#define STUMPLESS_OPTION_PERROR   (1 << 5)
 Log the message to the stderr as well as to the target.
 
#define STUMPLESS_OPTION_NONE   0
 Empty option mask for explicit 'no option' use.
 

Detailed Description

Options that can be used to modify the behavior of Stumpless components.

Macro Definition Documentation

◆ STUMPLESS_OPTION_CONS

#define STUMPLESS_OPTION_CONS   (1<<1)

Option to log to system console if writing to the target stream fails.

◆ STUMPLESS_OPTION_NDELAY

#define STUMPLESS_OPTION_NDELAY   (1<<2)

Not currently supported.

◆ STUMPLESS_OPTION_NONE

#define STUMPLESS_OPTION_NONE   0

Empty option mask for explicit 'no option' use.

◆ STUMPLESS_OPTION_NOWAIT

#define STUMPLESS_OPTION_NOWAIT   (1<<4)

No need to wait for the child processes that may have been created while logging the messages.

(Stumpless does not spawn child processes because it slows down the process of logging, so essentially this option is always set)

◆ STUMPLESS_OPTION_ODELAY

#define STUMPLESS_OPTION_ODELAY   (1<<3)

Not currently supported.

◆ STUMPLESS_OPTION_PERROR

#define STUMPLESS_OPTION_PERROR   (1 << 5)

Log the message to the stderr as well as to the target.

◆ STUMPLESS_OPTION_PID

#define STUMPLESS_OPTION_PID   1

Option to include the PID in stumpless messages.