Development Flex



        
        
            import mx.logging.Log;
            import mx.logging.targets.TraceTarget;
            private var _target:TraceTarget;
            private function initializeHandler( ):void
            {
                _target = new TraceTarget( );
                _target.includeTime = true;
                _target.includeLevel = true;
                _target.includeCategory = true;
                Log.addTarget(_target);
            }
            private function sendToLog( ):void
            {
                Log.getLogger("MainClass").info("Log Message");
            }