wp_logging doesn't want to work from inside an action, will try another approach