XCGLogger doesn't work when passed to a class in another framework
invoy-ghigley opened this issue · 1 comments
I have a class defined in another framework which accepts an already-defined XCGLogger
instance, e.g.,
import Processing
/* ... */
let processor = Processor()
processor.logger = logger
I've verified that logger is non-nil, that log levels are set appropriately, etc. What happens is that the main app, which created the logger, logs everything just fine. But using the same methods on the same logger instance, the class imported from the framework logs nothing. (Its logging is all internal, by the way. In other words, it uses the logger within its own methods and properties.)
Any ideas?
Let me clarify, the behavior I was seeing was actually that I was getting console output but not output to a log file. I was getting output to the log file from the main app, but not the framework.
A reboot fixed this, though I can't for the life of me understand why. So this can be closed, though I'm still baffled.