topical media & game development

talk show tell print

actionscript-lib-logger-LogMessage.ax

actionscript-lib-logger-LogMessage.ax [swf] flex


  package  {
    
    
A log message. Sent by the the Logger to all registered log observers when a new log message is generated.

  
    public class @ax-actionscript-lib-logger-LogMessage {
      // The text of the message sent to the log.
      private var msg:String;
      // The severity level of this message.
      private var level:Number;
    
      
@ax-actionscript-lib-logger-LogMessage Constructor

  
      public function @ax-actionscript-lib-logger-LogMessage (m:String, lev:Number) {
        setMessage(m);
        setLevel(lev);
      }
    
      
Sets the log message.

  
      public function setMessage (m:String):void {
        msg = m;
      }
    
      
Returns the log message.

  
      public function getMessage ():String {
        return msg;
      }
    
      
Sets the severity level for this message.

  
      public function setLevel (lev:Number):void {
        level = lev;
      }
    
      
Returns the severity level for this message.

  
      public function getLevel ():Number {
        return level;
      }
    }
  }


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.