Updated core logging function so it works when loaded across a sandboxed environment, like what occurs with the haraka email server and running logging as a plugin.