public interface Logger
Logger interface is the Flex compiler logging mechanism for OEM applications.
You implement this interface and provide an instance of the implementation to the
Application.setLogger() and/or Library.setLogger() methods.
The Flex compiler API exposes warnings and errors as Message objects.
You can use the Message.getClass().getName() method to differentiate
between message types programmatically.
The compiler utilizes some third-party libraries that use error-code-based
logging systems. As a result, the log() method also supports error codes.
void log(Message message, int errorCode, String source)
message - An object that implements the flex2.tools.oem.Message interface.errorCode - Error code. -1 if an error code is not available.source - Source code line number specified by the message.getLine() method.
null if the compiler message is not associated with any source file.Copyright © 2016 The Apache Software Foundation. All rights reserved.