Back to index

nux  3.0.0
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
nux::logging::Writer Class Reference

#include <LoggingWriter.h>

Collaboration diagram for nux::logging::Writer:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Member Functions

 ~Writer ()
void WriteMessage (Level severity, std::string const &module, std::string const &filename, int line_number, std::time_t timestamp, std::string const &message)
void SetOutputStream (std::ostream &out)

Static Public Member Functions

static WriterInstance ()

Private Member Functions

 Writer ()

Private Attributes

Implpimpl

Detailed Description

Definition at line 45 of file LoggingWriter.h.


Constructor & Destructor Documentation

Definition at line 183 of file LoggingWriter.cpp.

{
  delete pimpl;
#ifdef NUX_DEBUG
  std::cerr << "nux::logging::Writer::~Writer()\n";
#endif
}

Definition at line 175 of file LoggingWriter.cpp.

  : pimpl(new Impl())
{
#ifdef NUX_DEBUG
  std::cerr << "nux::logging::Writer::Writer()\n";
#endif
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 191 of file LoggingWriter.cpp.

{
  if (pInstance == 0)
  {
    pInstance = new Writer();
    std::atexit(cleanup_writer_instance);
  }
  return *pInstance;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nux::logging::Writer::SetOutputStream ( std::ostream &  out)

Definition at line 212 of file LoggingWriter.cpp.

Here is the call graph for this function:

void nux::logging::Writer::WriteMessage ( Level  severity,
std::string const &  module,
std::string const &  filename,
int  line_number,
std::time_t  timestamp,
std::string const &  message 
)

Definition at line 201 of file LoggingWriter.cpp.

{
  pimpl->WriteMessage(severity, module, filename, line_number,
                      timestamp, message);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 64 of file LoggingWriter.h.


The documentation for this class was generated from the following files: