On Wed, 18 Jul 2007, Mesdaq, Ali wrote: > But something I am still confused about is the initialize once and > only once that is discussed in the docs. If I have several modules > that use each other and they all use log4perl how does that impact me? > Is the initialize once and only once referring to per module or object > or per process or per system? If its any of the latter two then > wouldn't you always want to use init_once?
Only the main program should call init(). Modules should not use init(). init_once() is useful only in scenarios where your code runs by the same init() call more than once and you want to run init() only the first time (e.g. with CGI scripts running under Apache::Registry). -- Mike Mike Schilli [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel