FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hierarchy.getLogger

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Fri Sep 23, 2005 8:32 pm    Post subject: Hierarchy.getLogger Reply with quote

Kris, you should fix Hierarchy.getLogger. It still relies in the old AA behavior, so it produces out of bounds errors. The replace code I'm using is:
Code:

        synchronized LoggerInstance getLogger (char[] name)
        {
                name ~= ".";

                LoggerInstance * l = name in loggers;

                if (l is null)
                   {
                   // create a new logger
                   LoggerInstance li = new LoggerInstance (this, name);
                        l = &li;

                   // insert into linked list
                   insertLogger (*l);

                   // look for and adjust children
                   updateLoggers (*l, true);

                   // insert into map
                   loggers [name] = *l;
                   }
               
                return *l;
        }
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Fri Sep 23, 2005 11:04 pm    Post subject: Reply with quote

egad! The AA after-taste lingers on Shocked

Thanks, Carlos ~ patches & fixes are most welcome!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group