Back to index

nux  3.0.0
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes
nux::LogFileOutput Class Reference

Output to log file. More...

#include <OutputDevice.h>

Inheritance diagram for nux::LogFileOutput:
Inheritance graph
[legend]
Collaboration diagram for nux::LogFileOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Shutdown ()
 Closes output device and cleans up.
void Flush ()
 Flush the write cache so the output to the file isn't truncated.
void Serialize (const TCHAR *log_data, const TCHAR *LogPrefix, int severity)
 Write a stream to the log file.
 VARARG_DECL (void, void,{}, LogFunction, VARARG_NONE, const TCHAR *, VARARG_EXTRA(int severity), VARARG_EXTRA(severity))
void Enable ()
void Disable ()

Public Attributes

BOOL m_terminated

Protected Attributes

bool _object_destroyed
bool _enabled

Private Member Functions

 NUX_DECLARE_GLOBAL_OBJECT (LogFileOutput, GlobalSingletonInitializer)
void SerializeRaw (const TCHAR *log_data)
 Serialize data directly to the log file without any type of conversion or preprocessing.

Private Attributes

NSerializerm_LogSerializer
NString m_Filename
bool m_Opened
bool m_Closed

Detailed Description

Output to log file.

Definition at line 61 of file OutputDevice.h.


Member Function Documentation

void nux::LogOutputDevice::Disable ( ) [inherited]

Definition at line 91 of file OutputDevice.cpp.

  {
    _enabled = false;
  }
void nux::LogOutputDevice::Enable ( ) [inherited]

Definition at line 86 of file OutputDevice.cpp.

  {
    _enabled = true;
  }
void nux::LogFileOutput::Flush ( ) [virtual]

Flush the write cache so the output to the file isn't truncated.

Reimplemented from nux::LogOutputDevice.

void nux::LogFileOutput::Serialize ( const TCHAR log_data,
const TCHAR LogPrefix,
int  severity 
) [virtual]

Write a stream to the log file.

Parameters:
log_dataStream characters to write.
LogPrefixA string to write before the input stream of characters.

Implements nux::LogOutputDevice.

void nux::LogFileOutput::SerializeRaw ( const TCHAR log_data) [private]

Serialize data directly to the log file without any type of conversion or preprocessing.

Parameters:
log_dataString of char to write to the output file.
void nux::LogFileOutput::Shutdown ( ) [virtual]

Closes output device and cleans up.

Reimplemented from nux::LogOutputDevice.

nux::LogOutputDevice::VARARG_DECL ( void  ,
void   
) [inherited]

Member Data Documentation

bool nux::LogOutputDevice::_enabled [protected, inherited]

Definition at line 49 of file OutputDevice.h.

bool nux::LogOutputDevice::_object_destroyed [protected, inherited]

Definition at line 48 of file OutputDevice.h.

Definition at line 89 of file OutputDevice.h.

Definition at line 87 of file OutputDevice.h.

Definition at line 86 of file OutputDevice.h.

Definition at line 88 of file OutputDevice.h.

Definition at line 37 of file OutputDevice.h.


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