Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在多线程应用程序中使用log4coca_Ios_Objective C_Cocoa_Logging_Log4j - Fatal编程技术网

Ios 在多线程应用程序中使用log4coca

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]; } 对于所有记录器,此

我开始在我的应用程序中使用Log4Cocoa库,但我搜索其他方法来配置记录器

+ (void) configureWithFile:(NSString*)pathLogFile
{
    L4PropertyConfigurator* configurator = [[L4PropertyConfigurator alloc] pathLogFile];
    [configurator configure];
    [configurator release];
}
对于所有记录器,此函数在主应用程序中只调用一次,但我希望更改此解决方案,以便在记录器的init中调用此函数,而不是在主应用程序中调用它。 谢谢