home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / CrossingCup.swf / scripts / __Packages / com / bourre / log / LogLevel.as < prev    next >
Text File  |  2007-12-11  |  861b  |  31 lines

  1. class com.bourre.log.LogLevel extends Number
  2. {
  3.    static var DEBUG = new com.bourre.log.LogLevel("DEBUG",0);
  4.    static var INFO = new com.bourre.log.LogLevel("INFO",1);
  5.    static var WARN = new com.bourre.log.LogLevel("WARN",2);
  6.    static var ERROR = new com.bourre.log.LogLevel("ERROR",3);
  7.    static var FATAL = new com.bourre.log.LogLevel("FATAL",4);
  8.    function LogLevel(sName, nLevel)
  9.    {
  10.       super(nLevel);
  11.       this._sName = sName;
  12.       this._nLevel = nLevel;
  13.    }
  14.    function getName()
  15.    {
  16.       return this._sName;
  17.    }
  18.    function getLevel()
  19.    {
  20.       return this._nLevel;
  21.    }
  22.    function isEnabled()
  23.    {
  24.       return this._nLevel >= com.bourre.log.Logger.GETLEVEL();
  25.    }
  26.    function toString()
  27.    {
  28.       return com.bourre.log.PixlibStringifier.stringify(this) + "[" + this.getName() + ":" + this + "]";
  29.    }
  30. }
  31.