1 Reply Latest reply on Jul 30, 2007 10:23 AM by justSteve.com

    Are these typos in LiveDocs' logger sample code?

    justSteve.com
      In LiveDocs is this snippet:

      import mx.logging.targets.
      import mx.logging.
      private function initLogging():void {
      // Create a target.
      var logTarget:TraceTarget = new TraceTarget();
      // Log only messages for the classes in the mx.rpc.and
      // mx.messaging packages.
      logTarget.filters=["mx.rpc.,"mx.messaging.];
      // Log all log levels.
      logTarget.level = LogEventLevel.ALL;
      // Add date, time, category, and log level to the output.
      logTarget.includeDate = true;
      logTarget.includeTime = true;
      logTarget.includeCategory = true;
      logTarget.includeLevel = true;
      // Begin logging.
      Log.addTarget(logTarget);
      }


      When I drop that in a file FB2 gives me syntax errors on the imports
      unless I add an *. Then gives syntax error on the:
      logTarget.filters=["mx.rpc.,"mx.messaging.];

      until I close the quotes after each classname:
      "mx.rpc.","mx.messaging."];

      I have a hard time believing they've turned out sample code with such
      obvious typos so perhaps a different syntax is in play?