패키지 | mx.logging |
인터페이스 | public interface ILogger extends IEventDispatcher |
구현자 | LogLogger |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기타 예제
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
Logs the specified data using the LogEventLevel.DEBUG
level. | ILogger | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
Logs the specified data using the LogEventLevel.ERROR
level. | ILogger | ||
Logs the specified data using the LogEventLevel.FATAL
level. | ILogger | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
Logs the specified data using the LogEvent.INFO level. | ILogger | ||
Logs the specified data at the given level. | ILogger | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
Logs the specified data using the LogEventLevel.WARN level. | ILogger | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
category | 속성 |
debug | () | 메서드 |
public function debug(message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data using the LogEventLevel.DEBUG
level.
LogEventLevel.DEBUG
designates informational level
messages that are fine grained and most helpful when debugging
an application.
The string specified for logging can contain braces with an index indicating which additional parameter should be inserted into the string before it is logged. For example "the first additional parameter was {0} the second was {1}" will be translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
message:String — The information to log.
This string can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Additional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.debug("here is some channel info {0} and {1}", 15.4, true); // This will log the following String: // "here is some channel info 15.4 and true"
error | () | 메서드 |
public function error(message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data using the LogEventLevel.ERROR
level.
LogEventLevel.ERROR
designates error events
that might still allow the application to continue running.
The string specified for logging can contain braces with an index indicating which additional parameter should be inserted into the string before it is logged. For example "the first additional parameter was {0} the second was {1}" will be translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
message:String — The information to log.
This String can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Additional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.error("here is some channel info {0} and {1}", 15.4, true); // This will log the following String: // "here is some channel info 15.4 and true"
fatal | () | 메서드 |
public function fatal(message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data using the LogEventLevel.FATAL
level.
LogEventLevel.FATAL
designates events that are very
harmful and will eventually lead to application failure
The string specified for logging can contain braces with an index indicating which additional parameter should be inserted into the string before it is logged. For example "the first additional parameter was {0} the second was {1}" will be translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
message:String — The information to log.
This String can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Additional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.fatal("here is some channel info {0} and {1}", 15.4, true); // This will log the following String: // "here is some channel info 15.4 and true"
info | () | 메서드 |
public function info(message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data using the LogEvent.INFO
level.
LogEventLevel.INFO
designates informational messages that
highlight the progress of the application at coarse-grained level.
The string specified for logging can contain braces with an index indicating which additional parameter should be inserted into the string before it is logged. For example "the first additional parameter was {0} the second was {1}" will be translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
message:String — The information to log.
This String can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Additional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.info("here is some channel info {0} and {1}", 15.4, true); // This will log the following String: // "here is some channel info 15.4 and true"
log | () | 메서드 |
public function log(level:int, message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data at the given level.
The String specified for logging can contain braces with an index indicating which additional parameter should be inserted into the String before it is logged. For example "the first additional parameter was {0} the second was {1}" is translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
level:int — The level this information should be logged at.
Valid values are:
| |
message:String — The information to log.
This String can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Additional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.log(LogEventLevel.DEBUG, "here is some channel info {0} and {1}", LogEventLevel.DEBUG, 15.4, true); // This will log the following String as a DEBUG log message: // "here is some channel info 15.4 and true"
warn | () | 메서드 |
public function warn(message:String, ... rest):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Logs the specified data using the LogEventLevel.WARN
level.
LogEventLevel.WARN
designates events that could be harmful
to the application operation.
The string specified for logging can contain braces with an index indicating which additional parameter should be inserted into the string before it is logged. For example "the first additional parameter was {0} the second was {1}" will be translated into "the first additional parameter was 10 the second was 15" when called with 10 and 15 as parameters.
매개 변수
message:String — The information to log.
This String can contain special marker characters of the form {x},
where x is a zero based index that will be replaced with
the additional parameters found at that index if specified.
| |
... rest — Aadditional parameters that can be subsituted in the str
parameter at each "{x }" location, where x
is an integer (zero based) index value into the Array of values
specified.
|
예제
예제 사용 방법
// Get the logger for the mx.messaging.Channel "category" // and send some data to it. var logger:ILogger = Log.getLogger("mx.messaging.Channel"); logger.warn("here is some channel info {0} and {1}", 15.4, true); // This will log the following String: // "here is some channel info 15.4 and true"
Tue Jun 12 2018, 03:17 PM Z