Top "Logging" questions

Computer data logging is the process of recording events in a computer program or computer system, usually with a certain scope, in order to provide an audit trail that can be used to understand the activity of the system and to diagnose problems.

grep a file, but show several surrounding lines?

I would like to grep for a string, but also show the preceding five lines and the following five lines …

search logging grep command-line-interface
String formatting: % vs. .format vs. string literal

Python 2.6 introduced the str.format() method with a slightly different syntax from the existing % operator. Which is better and for …

python performance logging string-formatting f-string
python exception message capturing

import ftplib import urllib2 import os import logging logger = logging.getLogger('ftpuploader') hdlr = logging.FileHandler('ftplog.log') formatter = logging.Formatter(…

python exception logging except
How to see log files in MySQL?

I've read that Mysql server creates a log file where it keeps a record of all activities - like when …

mysql logging
IIS: Where can I find the IIS logs?

I'm trying to set up an application from a third party, which requires a supporting website hosted in my local …

iis logging iis-7 diagnostics
How to see query history in SQL Server Management Studio

Is the query history stored in some log files? If yes, can you tell me how to find their location? …

sql-server logging ssms
What is the command to truncate a SQL Server log file?

I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate …

sql-server truncate logging
How to show the last queries executed on MySQL?

Is there any query/way to show the last queries executed on ALL servers?

mysql logging
Spring Boot: How can I set the logging level with application.properties?

This is very simple question, but I cannot find information. (Maybe my knowledge about Java frameworks is severely lacking) How …

logging spring-boot
Is it possible to run one logrotate check manually?

Is it possible to run one iteration of logrotate manually without scheduling it on some interval?

logging logrotate