You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by "Hearne, S (Sean)" <Se...@rabobank.com> on 2015/02/12 17:44:13 UTC

Check if log4cxx been configured?

Hi,

I set up my config in an exe using: log4cxx::xml::DOMConfigurator::configure("MyProg.exe.log4cxx.xml")

I also use log4cxx in a dll that is used by MyProg.exe Is there a way I can find out if log4cxx has already been configured (from the dll)?

Log4net has the boolean variable: log4net.LogManager.GetRepository().Configured

Thanks,

Sean


--------------------------------------------------------------------------------
This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. 
--------------------------------------------------------------------------------

Re: Check if log4cxx been configured?

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Hearne, S (Sean),
am Donnerstag, 12. Februar 2015 um 17:44 schrieben Sie:

> Log4net has the boolean variable:
> log4net.LogManager.GetRepository().Configured 

log4cxx provides something similar:

http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1_log_manager.html#a8dbbae8c2efa0df0172c084cb14bb3a2
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1spi_1_1_logger_repository.html#a74ee52af71ff0e0b9efd1acd86b16164

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow