Ios 在多线程应用程序中使用log4coca
我开始在我的应用程序中使用Log4Cocoa库,但我搜索其他方法来配置记录器Ios 在多线程应用程序中使用log4coca,ios,objective-c,cocoa,logging,log4j,Ios,Objective C,Cocoa,Logging,Log4j,我开始在我的应用程序中使用Log4Cocoa库,但我搜索其他方法来配置记录器 + (void) configureWithFile:(NSString*)pathLogFile { L4PropertyConfigurator* configurator = [[L4PropertyConfigurator alloc] pathLogFile]; [configurator configure]; [configurator release]; } 对于所有记录器,此
+ (void) configureWithFile:(NSString*)pathLogFile
{
L4PropertyConfigurator* configurator = [[L4PropertyConfigurator alloc] pathLogFile];
[configurator configure];
[configurator release];
}
对于所有记录器,此函数在主应用程序中只调用一次,但我希望更改此解决方案,以便在记录器的init中调用此函数,而不是在主应用程序中调用它。
谢谢