패키지 | mx.logging |
클래스 | public class Log |
상속 | Log Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Loggers are singleton instances created for a particular category of information. Typically, the category is the package name of the component that desires to log information. The category provides users the ability to specify what log information they are interested in. Multiple categories can be selected and combined with regular expressions. This allows for both broad and narrow logging information to be acquired. For example, you might be interested in all logging information under the "mx.messaging" and "mx.rpc" packages and want the output from these packages to be formatted as XML. To get the all of the logging information under the "mx.messaging" category including sub-packages and components a wildcard expression is required, such as "mx.messaging.*". See the code example below for more details.
Targets provide the output mechanism of the data being logged.
This mechanism typically includes formatting, transmission, or storage, but
can be anything possible under the VM.
There are two targets provided: MiniDebugTarget
and
TraceTarget
.
Each of these writers take the current log information and "sends" it
somewhere for display and/or storage.
Targets also provide the specification of what log data to output.
기타 예제
메서드 | 정의 주체 | ||
---|---|---|---|
[정적]
Allows the specified target to begin receiving notification of log
events. | Log | ||
[정적]
This method removes all of the current loggers from the cache. | Log | ||
[정적]
Returns the logger associated with the specified category. | Log | ||
[정적]
This method checks the specified string value for illegal characters. | Log | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
[정적]
Indicates whether a debug level log event will be processed by a
log target. | Log | ||
[정적]
Indicates whether an error level log event will be processed by a
log target. | Log | ||
[정적]
Indicates whether a fatal level log event will be processed by a
log target. | Log | ||
[정적]
Indicates whether an info level log event will be processed by a
log target. | Log | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
[정적]
Indicates whether a warn level log event will be processed by a
log target. | Log | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
[정적]
Stops the specified target from receiving notification of log
events. | Log | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
addTarget | () | 메서드 |
public static function addTarget(target:mx.logging:ILoggingTarget):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Allows the specified target to begin receiving notification of log events.
매개 변수
target:mx.logging:ILoggingTarget — specific target that should capture log events.
|
flush | () | 메서드 |
public static function flush():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This method removes all of the current loggers from the cache.
Subsquent calls to the getLogger()
method return new instances
of loggers rather than any previous instances with the same category.
This method is intended for use in debugging only.
getLogger | () | 메서드 |
public static function getLogger(category:String):ILogger
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the logger associated with the specified category.
If the category given doesn't exist a new instance of a logger will be
returned and associated with that category.
Categories must be at least one character in length and may not contain
any blanks or any of the following characters:
[]~$^&\/(){}<>+=`!#%?,:;'"@
This method will throw an InvalidCategoryError
if the
category specified is malformed.
매개 변수
category:String — The category of the logger that should be returned.
|
ILogger — An instance of a logger object for the specified name.
If the name doesn't exist, a new instance with the specified
name is returned.
|
hasIllegalCharacters | () | 메서드 |
public static function hasIllegalCharacters(value:String):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
This method checks the specified string value for illegal characters.
매개 변수
value:String — The String to check for illegal characters.
The following characters are not valid:
[]~$^&\/(){}<>+=`!#%?,:;'"@
|
Boolean — true if there are any illegal characters found,
false otherwise
|
isDebug | () | 메서드 |
isError | () | 메서드 |
isFatal | () | 메서드 |
isInfo | () | 메서드 |
isWarn | () | 메서드 |
removeTarget | () | 메서드 |
public static function removeTarget(target:mx.logging:ILoggingTarget):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Stops the specified target from receiving notification of log events.
매개 변수
target:mx.logging:ILoggingTarget — specific target that should capture log events.
|
Tue Jun 12 2018, 03:17 PM Z