Pacote | mx.logging |
Classe | public class Log |
Herança | Log Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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.
Mais exemplos
Método | Definido por | ||
---|---|---|---|
[estático]
Allows the specified target to begin receiving notification of log
events. | Log | ||
[estático]
This method removes all of the current loggers from the cache. | Log | ||
[estático]
Returns the logger associated with the specified category. | Log | ||
[estático]
This method checks the specified string value for illegal characters. | Log | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
[estático]
Indicates whether a debug level log event will be processed by a
log target. | Log | ||
[estático]
Indicates whether an error level log event will be processed by a
log target. | Log | ||
[estático]
Indicates whether a fatal level log event will be processed by a
log target. | Log | ||
[estático]
Indicates whether an info level log event will be processed by a
log target. | Log | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
[estático]
Indicates whether a warn level log event will be processed by a
log target. | Log | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
[estático]
Stops the specified target from receiving notification of log
events. | Log | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna a representação de string do objeto especificado. | Object | ||
Retorna o valor primitivo do objeto especificado. | Object |
addTarget | () | método |
public static function addTarget(target:mx.logging:ILoggingTarget):void
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Allows the specified target to begin receiving notification of log events.
Parâmetros
target:mx.logging:ILoggingTarget — specific target that should capture log events.
|
flush | () | método |
public static function flush():void
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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 | () | método |
public static function getLogger(category:String):ILogger
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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.
Parâmetros
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 | () | método |
public static function hasIllegalCharacters(value:String):Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
This method checks the specified string value for illegal characters.
Parâmetros
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 | () | método |
public static function isDebug():Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Indicates whether a debug level log event will be processed by a log target.
RetornaBoolean — true if a debug level log event will be logged; otherwise false.
|
isError | () | método |
public static function isError():Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Indicates whether an error level log event will be processed by a log target.
RetornaBoolean — true if an error level log event will be logged; otherwise false.
|
isFatal | () | método |
public static function isFatal():Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Indicates whether a fatal level log event will be processed by a log target.
RetornaBoolean — true if a fatal level log event will be logged; otherwise false.
|
isInfo | () | método |
public static function isInfo():Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Indicates whether an info level log event will be processed by a log target.
RetornaBoolean — true if an info level log event will be logged; otherwise false.
|
isWarn | () | método |
public static function isWarn():Boolean
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Indicates whether a warn level log event will be processed by a log target.
RetornaBoolean — true if a warn level log event will be logged; otherwise false.
|
removeTarget | () | método |
public static function removeTarget(target:mx.logging:ILoggingTarget):void
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Stops the specified target from receiving notification of log events.
Parâmetros
target:mx.logging:ILoggingTarget — specific target that should capture log events.
|
Wed Jun 13 2018, 11:10 AM Z