initial implement to write custom log file