Package flex.messaging.log

Examples of flex.messaging.log.ConsoleTarget


    {
      //Remove any other targets
      Log.reset();
     
        //Up the logging level to debug, and create a logging target dynamically
      ConsoleTarget myTarget = new ConsoleTarget();
        myTarget.setLevel(LogEvent.DEBUG);
        myTarget.setPrefix("[LCDS] ");
        //myTarget.setIncludeDate(true);
        myTarget.setIncludeTime(true);
        myTarget.setIncludeLevel(true);
        myTarget.setIncludeCategory(true);
        //myTarget.addFilter("Startup.*");
        myTarget.addFilter("Service.Data.*");
        myTarget.addFilter("Message.*");
        myTarget.addFilter("Endpoint.*");
       
        //Add the new Debug target
        Log.addTarget(myTarget);
       
        return ((ConsoleTarget)Log.getTargets().get(0)).getLevel();
View Full Code Here


    {
      //Remove any other targets
      Log.reset();
     
      //Up the logging level to debug, and create a logging target dynamically
      ConsoleTarget myTarget = new ConsoleTarget();
        myTarget.setLevel(LogEvent.ERROR);
        myTarget.setPrefix("[Flex] ");
        myTarget.setIncludeDate(false);
        myTarget.setIncludeTime(true);
        myTarget.setIncludeLevel(true);
        myTarget.setIncludeCategory(true);
        myTarget.addFilter("Service.*");
        myTarget.addFilter("Message.*");
        myTarget.addFilter("DataService.*");       
        Log.addTarget(myTarget);
       
        return ((ConsoleTarget)Log.getTargets().get(0)).getLevel();
    }
View Full Code Here

    {
      //Remove any other targets
      Log.reset();
     
        //Up the logging level to debug, and create a logging target dynamically
      ConsoleTarget myTarget = new ConsoleTarget();
        myTarget.setLevel(LogEvent.DEBUG);
        myTarget.setPrefix("[LCDS] ");
        //myTarget.setIncludeDate(true);
        myTarget.setIncludeTime(true);
        myTarget.setIncludeLevel(true);
        myTarget.setIncludeCategory(true);
        //myTarget.addFilter("Startup.*");
        myTarget.addFilter("Service.Data.*");
        myTarget.addFilter("Message.*");
        myTarget.addFilter("Endpoint.*");
       
        //Add the new Debug target
        Log.addTarget(myTarget);
       
        return ((ConsoleTarget)Log.getTargets().get(0)).getLevel();
View Full Code Here

    {
      //Remove any other targets
      Log.reset();
     
      //Up the logging level to debug, and create a logging target dynamically
      ConsoleTarget myTarget = new ConsoleTarget();
        myTarget.setLevel(LogEvent.ERROR);
        myTarget.setPrefix("[Flex] ");
        myTarget.setIncludeDate(false);
        myTarget.setIncludeTime(true);
        myTarget.setIncludeLevel(true);
        myTarget.setIncludeCategory(true);
        myTarget.addFilter("Service.*");
        myTarget.addFilter("Message.*");
        myTarget.addFilter("DataService.*");       
        Log.addTarget(myTarget);
       
        return ((ConsoleTarget)Log.getTargets().get(0)).getLevel();
    }
View Full Code Here

TOP

Related Classes of flex.messaging.log.ConsoleTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.