changing the "this" references to self to avoid issues when the logging functions are called through helper functions by the developer