You.i Engine
CYITizenNaClLogPolicy Class Reference

Detailed Description

Logs information to Tizen NaCl's logging system.

This log policy logs log information so that it can be viewed on Tizen NaCl devices.

#include <logging/YiTizenNaClLogPolicy.h>

Inheritance diagram for CYITizenNaClLogPolicy:

Public Member Functions

 CYITizenNaClLogPolicy ()
 
virtual ~CYITizenNaClLogPolicy ()
 
void Open ()
 
void Close ()
 
bool IsOpen () const
 
- Public Member Functions inherited from CYILogPolicy
 CYILogPolicy ()
 
virtual ~CYILogPolicy ()
 
void PostWrite (YI_LOGGING_PARAMS &loggingParams)
 
void SetPreferences (const std::shared_ptr< CYIPreferences > &pPrefs)
 
const std::shared_ptr< CYIPreferences > & GetPreferences () const
 
void UpdateConfigMonitor () const
 
void SetWriteDirectEnabled (bool bEnabled)
 
bool IsWriteDirectEnabled () const
 
void SetUseLinesCache (bool bUseLinesCache)
 
std::vector< CYIStringGetLastLoggedLines (uint32_t uLinesCount=std::numeric_limits< uint32_t >::max()) const
 

Static Public Member Functions

static void SetWriteToJavascriptWindow (bool bEnabled)
 
static bool IsWritingToJavascriptWindow ()
 

Additional Inherited Members

- Protected Member Functions inherited from CYILogPolicy
void EnableTimeStamp ()
 
void EnableClassName ()
 
void EnableLineNumber ()
 
void EnableSeverity ()
 
void EnableTagName ()
 
void DisableTimeStamp ()
 
void DisableClassName ()
 
void DisableLineNumber ()
 
void DisableSeverity ()
 
void DisableTagName ()
 
virtual CYIString BuildLogStatement (const CYIString &logStatement, const YI_LOGGING_PARAMS &params)
 
- Protected Attributes inherited from CYILogPolicy
CYIConcurrentQueue< YI_LOGGING_PARAMSm_logQueue
 
uint32_t m_uAttributeCache
 

Constructor & Destructor Documentation

CYITizenNaClLogPolicy::CYITizenNaClLogPolicy ( )
virtual CYITizenNaClLogPolicy::~CYITizenNaClLogPolicy ( )
virtual

Member Function Documentation

void CYITizenNaClLogPolicy::Close ( )
virtual

Close does nothing on Tizen NaCl.

Implements CYILogPolicy.

bool CYITizenNaClLogPolicy::IsOpen ( ) const
virtual

Always returns true for Tizen NaCl logging.

Implements CYILogPolicy.

static bool CYITizenNaClLogPolicy::IsWritingToJavascriptWindow ( )
static

Returns true if writing to the Javascript log window is currently enabled.

See also
SetWriteToJavascriptWindow
void CYITizenNaClLogPolicy::Open ( )
virtual

Open does nothing on Tizen NaCl.

Implements CYILogPolicy.

static void CYITizenNaClLogPolicy::SetWriteToJavascriptWindow ( bool  bEnabled)
static

Enables writing to the Javascript log window. Initially, Tizen log policy instances do not write through to the Javascript log window to avoid taking a performance hit. When the Javascript log window is first displayed, writing to the window is enabled.

Users may call this function at app init time to ensure that all log messages are recorded in the Javascript log window. However this may have an adverse effect on performance.

Note
When this function is first called with bEnabled set to true, the Javascript log window will be pre-populated with log entries from the log cache.

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