Passing LogManager to another class
Posted: Mon Jul 04, 2016 10:32 am
I am designing a box plugin and would like some functionality to be separated out into another class.
However, I can't seem to write to the LogManager in this other class.
I find that if I pass the logmanager to the class constructor in the box plugin's initialize() function, the logmanager held by the class becomes invalid in process() -- apparently it is destroyed and recreated inbetween these two functions somehow.
Is there a proper way to access logging in another class used by a box plugin?
However, I can't seem to write to the LogManager in this other class.
I find that if I pass the logmanager to the class constructor in the box plugin's initialize() function, the logmanager held by the class becomes invalid in process() -- apparently it is destroyed and recreated inbetween these two functions somehow.
Is there a proper way to access logging in another class used by a box plugin?