Version: 2.9.4
Classes | Defines | Typedefs | Enumerations | Functions
log.h File Reference

クラス

class  wxLogRecordInfo
 Information about a log record (unit of the log output). More...
class  wxLogWindow
 This class represents a background log window: to be precise, it collects all log messages in the log frame which it manages but also passes them on to the log target which was active at the moment of its creation. More...
class  wxLogInterposerTemp
 A special version of wxLogChain which uses itself as the new log target. More...
class  wxLogChain
 This simple class allows you to chain log sinks, that is to install a new sink but keep passing log messages to the old one instead of replacing it completely as wxLog::SetActiveTarget does. More...
class  wxLogGui
 これは GUI wxWidgets アプリケーションのデフォルトのログターゲットです。More...
class  wxLogStream
 このクラスはログメッセージを C++ のストリームへリダイレクトするのに使用できます。More...
class  wxLogStderr
 This class can be used to redirect the log messages to a C file stream (not to be confused with C++ streams). More...
class  wxLogBuffer
 wxLogBuffer is a very simple implementation of log sink which simply collects all the logged messages in a string (except the debug messages which are output in the usual way immediately as we're presumably not interested in collecting them for later). More...
class  wxLogInterposer
 A special version of wxLogChain which uses itself as the new log target. More...
class  wxLogTextCtrl
 これらのターゲットを使用してログメッセージをテキストコントロールへリダイレクトできます。More...
class  wxLogFormatter
 wxLogFormatter class is used to format the log messages. More...
class  wxLog
 wxLog class defines the interface for the log targets used by wxWidgets logging functions as explained in the wxLog Classes Overview. More...
class  wxLogNull
 このクラスを用いて一時的にロギングを中断することができます。More...

Defines

#define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD()
 Use this macro to disable logging at debug and trace levels in release build when not using wxIMPLEMENT_APP().

Typedefs

typedef unsigned long wxLogLevel
 The type used to specify a log level.

Enumerations

enum  wxLogLevelValues {
  wxLOG_FatalError,
  wxLOG_Error,
  wxLOG_Warning,
  wxLOG_Message,
  wxLOG_Status,
  wxLOG_Info,
  wxLOG_Debug,
  wxLOG_Trace,
  wxLOG_Progress,
  wxLOG_User = 100,
  wxLOG_Max = 10000
}
 Different standard log levels (you may also define your own) used with by standard wxLog functions wxLogGeneric(), wxLogError(), wxLogWarning(), etc... More...

Functions

void wxSafeShowMessage (const wxString &title, const wxString &text)
 This function shows a message to the user in a safe way and should be safe to call even before the application has been initialized or if it is currently in some other strange state (for example, about to crash).
unsigned long wxSysErrorCode ()
 Returns the error code from the last system call.
const wxCharwxSysErrorMsg (unsigned long errCode=0)
 Returns the error message corresponding to the given system error code.
void wxLogGeneric (wxLogLevel level, const char *formatString,...)
 Logs a message with the given wxLogLevel.
void wxVLogGeneric (wxLogLevel level, const char *formatString, va_list argPtr)
void wxLogMessage (const char *formatString,...)
 すべての通常 (通知) メッセージ用。
void wxVLogMessage (const char *formatString, va_list argPtr)
void wxLogVerbose (const char *formatString,...)
 詳細な出力用。
void wxVLogVerbose (const char *formatString, va_list argPtr)
void wxLogWarning (const char *formatString,...)
 For warnings - they are also normally shown to the user, but don't interrupt the program work.
void wxVLogWarning (const char *formatString, va_list argPtr)
void wxLogFatalError (const char *formatString,...)
 Like wxLogError(), but also terminates the program with the exit code 3.
void wxVLogFatalError (const char *formatString, va_list argPtr)
void wxLogError (const char *formatString,...)
 エラーメッセージ用の関数です。
void wxVLogError (const char *formatString, va_list argPtr)
void wxLogTrace (const char *mask, const char *formatString,...)
 Log a message at wxLOG_Trace log level (see wxLogLevelValues enum).
void wxVLogTrace (const char *mask, const char *formatString, va_list argPtr)
void wxLogTrace (wxTraceMask mask, const char *formatString,...)
 Like wxLogDebug(), trace functions only do something in debug builds and expand to nothing in the release one.
void wxVLogTrace (wxTraceMask mask, const char *formatString, va_list argPtr)
void wxLogDebug (const char *formatString,...)
 デバッグ出力に適切な関数です。
void wxVLogDebug (const char *formatString, va_list argPtr)
void wxLogStatus (wxFrame *frame, const char *formatString,...)
 Messages logged by this function will appear in the statusbar of the frame or of the top level application window by default (i.e.
void wxVLogStatus (wxFrame *frame, const char *formatString, va_list argPtr)
void wxLogStatus (const char *formatString,...)
void wxVLogStatus (const char *formatString, va_list argPtr)
void wxLogSysError (const char *formatString,...)
 Mostly used by wxWidgets itself, but might be handy for logging errors after system call (API function) failure.
void wxVLogSysError (const char *formatString, va_list argPtr)

Typedef Documentation

typedef unsigned long wxLogLevel

The type used to specify a log level.

Default values of wxLogLevel used by wxWidgets are contained in the wxLogLevelValues enumeration.


Enumeration Type Documentation

Different standard log levels (you may also define your own) used with by standard wxLog functions wxLogGeneric(), wxLogError(), wxLogWarning(), etc...

Enumerator:
wxLOG_FatalError 

プログラムを継続できないため、ただちに中断します

wxLOG_Error 

a serious error, user must be informed about it

wxLOG_Warning 

user is normally informed about it but may be ignored

wxLOG_Message 

normal message (i.e. normal output of a non GUI app)

wxLOG_Status 

informational: might go to the status line of GUI app

wxLOG_Info 

informational message (a.k.a. 'Verbose')

wxLOG_Debug 

never shown to the user, disabled in release mode

wxLOG_Trace 

トレースメッセージもデバッグモード時のみ有効化されます

wxLOG_Progress 

used for progress indicator (not yet)

wxLOG_User 

user defined levels start here

wxLOG_Max 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines