패키지 | mx.logging |
클래스 | public class AbstractTarget |
상속 | AbstractTarget Object |
구현 | ILoggingTarget, IMXMLObject |
하위 클래스 | LineFormattedTarget |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
logEvent()
method is provided.
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
filters : Array
In addition to the level setting, filters are used to
provide a psuedo-hierarchical mapping for processing only those events
for a given category. | AbstractTarget | ||
id : String [읽기 전용]
Provides access to the id of this target. | AbstractTarget | ||
level : int
Provides access to the level this target is currently set at. | AbstractTarget |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | AbstractTarget | ||
Sets up this target with the specified logger. | AbstractTarget | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Called after the implementing object has been created
and all properties specified on the tag have been assigned. | AbstractTarget | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
This method handles a LogEvent from an associated logger. | AbstractTarget | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Stops this target from receiving events from the specified logger. | AbstractTarget | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
filters | 속성 |
filters:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
In addition to the level
setting, filters are used to
provide a psuedo-hierarchical mapping for processing only those events
for a given category.
Each logger belongs to a category.
By convention these categories map to the fully-qualified class name in
which the logger is used.
For example, a logger that is logging messages for the
mx.rpc.soap.WebService
class, uses
"mx.rpc.soap.WebService" as the parameter to the
Log.getLogger()
method call.
When messages are sent under this category only those targets that have
a filter which matches that category receive notification of those
events.
Filter expressions can include a wildcard match, indicated with an
asterisk.
The wildcard must be the right-most character in the expression.
For example: rpc*, mx.*, or *.
If an invalid expression is specified, a InvalidFilterError
is thrown.
If null
or [] is specified, the filters are set to the
default of ["*"].
For example:
var traceLogger:ILoggingTarget = new TraceTarget(); traceLogger.filters = ["mx.rpc.*", "mx.messaging.*"]; Log.addTarget(traceLogger);
구현
public function get filters():Array
public function set filters(value:Array):void
id | 속성 |
level | 속성 |
level:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to the level this target is currently set at. Value values are:
LogEventLevel.FATAL (1000)
designates events that are very harmful and will eventually lead to application failureLogEventLevel.ERROR (8)
designates error events that might still allow the application to continue running.LogEventLevel.WARN (6)
designates events that could be harmful to the application operationLogEventLevel.INFO (4)
designates informational messages that highlight the progress of the application at coarse-grained level.LogEventLevel.DEBUG (2)
designates informational level messages that are fine grained and most helpful when debugging an application.LogEventLevel.ALL (0)
intended to force a target to process all messages.
구현
public function get level():int
public function set level(value:int):void
AbstractTarget | () | 생성자 |
public function AbstractTarget()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
addLogger | () | 메서드 |
public function addLogger(logger:ILogger):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Sets up this target with the specified logger. This allows this target to receive log events from the specified logger.
매개 변수
logger:ILogger — The ILogger that this target should listen to.
|
initialized | () | 메서드 |
public function initialized(document:Object, id:String):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Called after the implementing object has been created and all properties specified on the tag have been assigned.
매개 변수
document:Object — MXML document that created this object.
| |
id:String — Used by the document to refer to this object.
If the object is a deep property on the document, id is null.
|
logEvent | () | 메서드 |
public function logEvent(event:LogEvent):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This method handles a LogEvent
from an associated logger.
A target uses this method to translate the event into the appropriate
format for transmission, storage, or display.
This method will be called only if the event's level is in range of the
target's level.
NOTE: Descendants must override this method to make it useful.
매개 변수
event:LogEvent — An event from an associated logger.
|
removeLogger | () | 메서드 |
Tue Jun 12 2018, 03:17 PM Z