Logs are lists of events or information generated by a program or system. They are used for diagnosis as they can contain various useful information to pinpoint the cause of a problem.
Logs are lists of events or information generated by a program or system. They are used for diagnosis as they can contain various useful information to pinpoint the cause of a problem. Generally, there are a few types of entries:
Error: A problem that can cause a process or program to fail, such as "Directory not found; quitting".
Warning: A potential problem that has not caused a failure yet, or create a failure that was easily rectified within the program, such as "Configuration file not found; using default configuration."
Information: A bit of info, such as "The server is listening on port 80."
Verbose: Low-level info, such as "Opened configuration file for reading." Useful to show between which initiation steps a failure occurred, with greater specificity than the use of information entries.
Debug: Extreely fine info, often useless. This can be a new entry for every connection to a webserver saying "New connection from 10.20.10.154,
testdev.local/index
.php. HTTP/1.1:404, 2KB returned".