Safe cast
fix
Add MyLogFormatter class and integrate it