A log file records events that occur on a computer system. Messages from the system get written to the log file as events take place.
A log file is a text file or XML file used to register the automatically produced and time-stamped documentation of events, behaviors and conditions relevant to a particular system.