It does not look like you can do this with the current logging code.  While you can add your own implementation of the ILoggingTarget interface which receives the fully formatted string (after the variable substitution), you can’t add your own ILogger implementation for a given category.   It is the ILogger class which does the argument substitution and right now that is hard-coded to use the LogLogger implementation class.  I think we ship the source for this stuff in the framework/source directory so you can see for yourself.

 

Jeff

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of santharao246
Sent: Wednesday, August 09, 2006 7:03 AM
To: [email protected]
Subject: [flexcoders] Logging in Flex2 - Please help

 

Hi,
We have a created a customTarget which will log the messages to
a Debug Console. In the console, we need to display the message and
the object that is passed to the logger.

For eg:

1) res:Object ; // asuume it is initialized some where else
myLogger.info("This is a {1} message", res);

The output will look like
This is a <res.toString()> message.

2) In our scenario we don't want the message to be replaced with the
content of the 2nd argument. We need to access the object as it is.

The current Logging mechanism we dont see a way to achieve
this. Even If we can create our own logger and logevent, how does
the Log.getLogger be changed to return the customLogger object.

Any suggestions? Please help me, this is urgent.

Thanks,
Santa

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to