我想使用 CocoaLumberjack 并尝试将其插入到ddLogLevel
const
我的 .pch 文件中:
#if DEBUG
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
#else
static const int ddLogLevel = LOG_LEVEL_INFO;
#endif
但是,由于我使用的是 XMPP 框架,并且使用了 CocoaLumberjack,所以我遇到了Redefinition of 'ddLogLevel'
错误,因为这些类包含与上面完全相同的const
定义。
我绝对不想ddLogLevel
在我的每个类中都定义以避免这种情况。我怎样才能解决这个问题?