2

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

+ (void) configureWithFile:(NSString*)pathLogFile
{
    L4PropertyConfigurator* configurator = [[L4PropertyConfigurator alloc] pathLogFile];
    [configurator configure];
    [configurator release];
}

此函数只会在所有记录器的主应用程序中调用一次,但我想更改此解决方案以便在记录器的初始化中调用此函数,而不是在主应用程序中调用它。谢谢

4

0 回答 0