removed trailing spaces
Removed line and category from the logging function