Is it possible to change the log level while the application runs? #1399
-
In my
In
But, even though I declared my So, what am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This would mean that you need to import |
Beta Was this translation helpful? Give feedback.
This would mean that you need to import
AppDelegate.h
in every place you useDDLogXYZ
. And this in turn means that each of those headers define a newddLogLevel
. What you need to do is to declare yourddLogLevel
asextern
inAppDelegate.h
and initialize it inAppDelegate.m
.Or even better: Create new
Logging.h
andLogging.m
files that take care of this, removing the need to linkAppDelegate.h
to every place in the app that needs logging 😉