EPAM Systems interview question

Code a simple method for logging process