Support for both type of log files