package UU.Logging { import UU.ISerialization.* ; import UU.Serialization.* ; // Defining some global parameters for the logging framework. Maybe we should // have these specified in some XML file; but for now we use this class. public class LoggingConf { // Using Singleton Pattern... private static var logstream : LogStream = null ; private static var serializer : Serializer = null ; public static const NOLOGGING : int = 10 ; public static const MAXLEVEL : int = 5 ; public static const LOGALL : int = 0; public static var level : int = NOLOGGING ; public static function getLogStream() : LogStream { if (logstream==null) logstream = new ASTraceLogStream() ; return logstream ; } public static function getSerializer() : Serializer { if (serializer == null) serializer = new DefaultSerializer() ; return serializer ; } public static function enableLogging() : void { level = LOGALL ; } public static function disableLogging() : void { level = NOLOGGING ; } } }