このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XLogger
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: logging ::

interface XLogger
Description
器具/実施するd by a 構成要素 which is able to スピードを出す/記録につける events.

This interface is 概略で designed after the Java Logging API. However, there are some differences, the major ones 存在:

  • There's no support (yet) for filtering スピードを出す/記録につける events.
  • There ain't no convenience menthods for logging.
  • There's no localization support.
  • Logger instances do not form a 階層制度.

Since
OOo 2.3

Methods' 要約
addLogHandler 追加するs the given handler to the 名簿(に載せる)/表(にあげる) of handlers.  
removeLogHandler 除去するs the given handler from the 名簿(に載せる)/表(にあげる) of handlers.  
isLoggable 決定するs whether logger instance would produce any 生産(高) for the given level.  
スピードを出す/記録につける スピードを出す/記録につけるs a given message  
logp スピードを出す/記録につけるs a given message, 詳細(に述べる)ing the source class and method at which the logged event occured.  
せいにするs' 要約
指名する denotes the 指名する of the logger.  
Level 明示するs which スピードを出す/記録につける events are logged or ignored.  
Methods' 詳細(に述べる)s
addLogHandler
無効の
addLogHandler( [in] XLogHandler  LogHandler );

Description
追加するs the given handler to the 名簿(に載せる)/表(にあげる) of handlers.

When an event is logged, the logger will create a LogRecord for this event, and pass this 記録,記録的な/記録する to all 登録(する)d handlers. 選び出す/独身 handlers might or might not スピードを出す/記録につける those 記録,記録的な/記録するs at their own discretion, and depending on 付加 制限s such as filters 明示するd at handler level.

公式文書,認める: The スピードを出す/記録につける level of the given handler (XLogHandler::Level) will not be touched. In particular, it will not be 始める,決める to the logger's スピードを出す/記録につける level. It's the 責任/義務 of the 構成要素 which knits a logger with one or more スピードを出す/記録につける handlers to 確実にする that all loggers have appropriate levels 始める,決める.

Parameter LogHandler
the handler to 追加する to the 名簿(に載せる)/表(にあげる) of handlers. The call is ignored if this parameter is NULL.
removeLogHandler
無効の
removeLogHandler( [in] XLogHandler  LogHandler );

Description
除去するs the given handler from the 名簿(に載せる)/表(にあげる) of handlers.
Parameter LogHandler
the handler to 除去する from the 名簿(に載せる)/表(にあげる) of handlers. The call is ignored if this parameter is NULL, or if the handler has not 以前 beed 追加するd.
isLoggable
boolean
isLoggable( [in] long  Level );

Description
決定するs whether logger instance would produce any 生産(高) for the given level.

The method can be used to optimize 業績/成果 as maybe コンビナート/複合体 parameter evaluation in the スピードを出す/記録につける calls can be omitted if isLoggable 評価するs to 誤った.

Parameter Level
level to be checked against
Returns
true if there would be some 生産(高) for this XLogger for the given level, 誤った さもなければ. 公式文書,認める that a return value of 誤った could also 示す that the logger does not have any スピードを出す/記録につける handlers associated with it.
See also
addLogHandler, removeLogHandler
スピードを出す/記録につける
無効の
スピードを出す/記録につける( [in] long  Level,
[in] string  Message );

Description
スピードを出す/記録につけるs a given message
Parameter Level
the スピードを出す/記録につける level of this message. If this level is smaller than the logger's Level せいにする, then the call will be ignored.
Parameter Message
the message to スピードを出す/記録につける
logp
無効の
logp( [in] long  Level,
[in] string  SourceClassName,
[in] string  SourceMethodName,
[in] string  Message );

Description
スピードを出す/記録につけるs a given message, 詳細(に述べる)ing the source class and method at which the logged event occured.
Parameter Level
the スピードを出す/記録につける level of this message. If this level is smaller than the logger's Level せいにする, then the call will be ignored.
Parameter SourceClass
the source class at which the logged event occured.
Parameter SourceMethod
the source class at which the logged event occured.
Parameter Message
the message to スピードを出す/記録につける
せいにするs' 詳細(に述べる)s
指名する
[ readonly ] string 指名する;
Description
denotes the 指名する of the logger.
Level
long Level;
Description
明示するs which スピードを出す/記録につける events are logged or ignored.
See also
LogLevel
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.