----- From your page:

nsCOMPtr<nsIConsoleService> aConsoleService = 
do_GetService("@mozilla.org/consoleservice;1");
aConsoleService->LogStringMessage(NS_LITERAL_STRING[1]("a logging 
message").get());

[1] NS_LITERAL_STRING( doesn't seem to work because of use of nsAutoString. 
You can use ToNewUnicode(nsCString("a logging message")) instead.

-----

Can you tell me what error you get for this code? It seems like it should just 
work, assuming you #include "nsString.h" somewhere.

   jag

Axel Hecht wrote:

> Hi David,
> 
> first of all, nice. But I have a few nits:
> The NS_LITERAL_STRING problem. jag, could you peek at this?
> 
> You should make a note that you're talking about the console service,
> and not nspr logging. A link to the nspr reference might be good, so
> people know about the alternative.
> 
> And it's developer, not developper. ;-)
> 
> Axel
> 
> David Olivari wrote:
> 
>>here a little html page about Mozilla Logging.
>>http://people.eprocess.fr/dolivari/mozilla/mozilla_logging_html
>>
>>the original xml-docbook is available too :
>>http://people.eprocess.fr/dolivari/mozilla/mozilla_logging.xml
>>



Reply via email to