EPAM Systems Interview Question

Code a simple method for logging process