All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flex.messaging.log.LogEvent Maven / Gradle / Ivy

Go to download

BlazeDS is the server-based Java remoting and web messaging technology that enables developers to easily connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR applications for more responsive rich Internet application (RIA) experiences.

There is a newer version: 3.2.0.3978
Show newest version
/*************************************************************************
 * 
 * ADOBE CONFIDENTIAL
 * __________________
 * 
 *  [2002] - [2007] Adobe Systems Incorporated 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated
 * and its suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 */
package flex.messaging.log;

public class LogEvent
{
    public static final short NONE = 2000;
    public static final short FATAL = 1000;
    public static final short ERROR = 8;
    public static final short WARN = 6;
    public static final short INFO = 4;
    public static final short DEBUG = 2;
    public static final short ALL = 0;

    /**
     * Provides access to the level for this log event.
     * Valid values are:
     * 
    *
  • LogEvent.DEBUG designates informational * level messages that are fine grained and most helpful when * debugging an application.
  • * *
  • LogEvent.INFO designates informational messages * that highlight the progress of the application at * coarse-grained level.
  • * *
  • LogEvent.WARN designates events that could be * harmful to the application operation.
  • * *
  • LogEvent.ERROR designates error events that might * still allow the application to continue running.
  • * *
  • LogEvent.FATAL designates events that are very * harmful and will eventually lead to application failure.
  • * *
*/ public short level; /** * Provides access to the message that was logged. */ public String message; /** * Logger instance that raised the log event. */ public Logger logger; /** * Related exception, if applicable */ public Throwable throwable; public LogEvent(Logger lgr, String msg, short lvl, Throwable t) { logger = lgr; message = msg; level = lvl; throwable = t; } /** * Returns a string value representing the level specified. * * @param value the level a string is desired for. * @return the level specified in english */ public static String getLevelString(short value) { switch (value) { case NONE: return ("NONE"); case FATAL: return ("FATAL"); case ERROR: return ("ERROR"); case WARN: return ("WARN"); case INFO: return ("INFO"); case DEBUG: return ("DEBUG"); case ALL: return ("ALL"); default: return ("UNKNOWN"); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy