74 static std::list<std::ostream*> *streams = 0;
90 *pstreams =
new std::list<std::ostream*> ();
113 (*pl)->remove (stream);
161 struct sigaction hdl;
163 sigaction (SIGSEGV, &hdl, 0);
165 std::list<std::ostream*> *l = *pl;
170 std::ostream* s (l->front ());
176 hdl.sa_handler=SIG_DFL;
177 sigaction (SIGSEGV, &hdl, 0);
Declaration of RegisterStream(), UnregisterStream(), and FlushStreams().
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void sigHandler(int sig)
Overrides normal SIGSEGV handler once the HandleTerminate function is run.
void FlushStreams(void)
Flush all currently registered streams.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
std::list< std::ostream * > * GetStreamList(void)
Get the stream list, initializing it if necessary.
void RegisterStream(std::ostream *stream)
Register a stream to be flushed on abnormal exit.
std::list< std::ostream * > ** PeekStreamList(void)
Static variable pointing to the list of output streams to be flushed on fatal errors.
void UnregisterStream(std::ostream *stream)
Unregister a stream for flushing on abnormal exit.