home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / air / update / logging / Level.as next >
Encoding:
Text File  |  2010-06-23  |  1.3 KB  |  57 lines

  1. package air.update.logging
  2. {
  3.    public class Level
  4.    {
  5.       public static const ALL:int = int.MIN_VALUE;
  6.       
  7.       public static const FINEST:int = 300;
  8.       
  9.       public static const FINER:int = 400;
  10.       
  11.       public static const FINE:int = 500;
  12.       
  13.       public static const CONFIG:int = 700;
  14.       
  15.       public static const INFO:int = 800;
  16.       
  17.       public static const WARNING:int = 900;
  18.       
  19.       public static const SEVERE:int = 1000;
  20.       
  21.       public static const OFF:int = int.MAX_VALUE;
  22.       
  23.       public function Level()
  24.       {
  25.          super();
  26.       }
  27.       
  28.       public static function getName(param1:int) : String
  29.       {
  30.          switch(param1)
  31.          {
  32.             case Level.ALL:
  33.                return "ALL";
  34.             case Level.FINEST:
  35.                return "FINEST";
  36.             case Level.FINER:
  37.                return "FINER";
  38.             case Level.FINE:
  39.                return "FINE";
  40.             case Level.CONFIG:
  41.                return "CONFIG";
  42.             case Level.INFO:
  43.                return "INFO";
  44.             case Level.WARNING:
  45.                return "WARNING";
  46.             case Level.SEVERE:
  47.                return "SEVERE";
  48.             case Level.OFF:
  49.                return "OFF";
  50.             default:
  51.                return "";
  52.          }
  53.       }
  54.    }
  55. }
  56.  
  57.