Console : register logs on script exit
Locales : set an error when the locale isn't found
Use PHP_EOL constant instead of \r\n