I'm not sure if this is intentional or not, but currently, signposts for any given pipeline can only be enabled if ImagePipeline.Configuration.isSignpostLoggingEnabled is set to true before a pipeline is created. If the pipeline was created with signposts enabled, then toggling ImagePipeline.Configuration.isSignpostLoggingEnabled on and off also enables and disables the signposts for that pipeline as expected.
This seems to happen because a pipeline's OSLog is set at initialization based on the current setting of ImagePipeline.Configuration.isSignpostLoggingEnabled. When false, log is set to disabled. The internal signpost wrapper functions check ImagePipeline.Configuration.isSignpostLoggingEnabled every time it is called. Therefore, if the supplied log is not disabled, then whether or not the signpost is recorded is dependent on ImagePipeline.Configuration.isSignpostLoggingEnabled. However, if the log is disabled, it doesn't matter what ImagePipeline.Configuration.isSignpostLoggingEnabled is set to, the signpost will never be recorded.
So my question is, can the signpost support be updated so that signpost logging can be turned on or off at any time? We ran into this issue while trying to implement an internal development toggle to allow us to enable or disable signposts without having to rebuild the app.
I'm not sure if this is intentional or not, but currently, signposts for any given pipeline can only be enabled if
ImagePipeline.Configuration.isSignpostLoggingEnabledis set totruebefore a pipeline is created. If the pipeline was created with signposts enabled, then togglingImagePipeline.Configuration.isSignpostLoggingEnabledon and off also enables and disables the signposts for that pipeline as expected.This seems to happen because a pipeline's
OSLogis set at initialization based on the current setting ofImagePipeline.Configuration.isSignpostLoggingEnabled. Whenfalse,logis set todisabled. The internal signpost wrapper functions checkImagePipeline.Configuration.isSignpostLoggingEnabledevery time it is called. Therefore, if the supplied log is notdisabled, then whether or not the signpost is recorded is dependent onImagePipeline.Configuration.isSignpostLoggingEnabled. However, if the log isdisabled, it doesn't matter whatImagePipeline.Configuration.isSignpostLoggingEnabledis set to, the signpost will never be recorded.So my question is, can the signpost support be updated so that signpost logging can be turned on or off at any time? We ran into this issue while trying to implement an internal development toggle to allow us to enable or disable signposts without having to rebuild the app.