wiki:FAQ-getLog-Error

FAQ: How do I resolve "The value returned from the getLog function is not of type MachII.logging.Log."?

When calling an event, I get this exception from my CFML engine:

The value returned from the getLog function is not of type MachII.logging.Log.

This occurs when a developer accidentally uses an init method within their Listener which overrides the inherited init method from the MachII.framework.Listener (which inherits from MachII.framework.BaseComponent). Use the configure method supported by Mach-II instead of overriding the init method.

Back to FAQs