Robin Cornelius wrote:
> On Wed, Sep 16, 2009 at 1:46 PM, izze euler <[email protected]> wrote:
>> I want to add some debug messages to the source code, so that I can see what
>> the code is doing and where it is going wrong.
>>
>> I am using
>>
>> std::cout << "Debug message here" << std::endl;
> 
> you may find the ll macros easier to use in this case, because they
> will go to the console window, the SecondLife.log etc
> 
> use :-
> 
> llinfos << "Some Message " << llendl;
> 
> or
> 
> llwarns << "Some more serious message " << llendl;
> 
> or
> 
> llerrs << "Some fatal i'm killing the client message" << llendl;

actually, prefer the newer LL_INFOS("CodeModuleName"), etc. all-caps macros, 
they fit in the coding style, and are easier to control from 
logcontrol-dev.xml. Wiki link:
https://wiki.secondlife.com/wiki/Logging_System_Overview

/me is excessively behind on mail, sorry for late response

+ poppy
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to