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.

Good examples using java.util.logging

I want to use logs in my program. I heard about java.util.logging, but I don't know how to …

java logging java.util.logging
How to have git log show filenames like svn log -v

SVN's log has a "-v" mode that outputs filenames of files changed in each commit, like so: jes5199$ svn log …

svn git logging
How to log PostgreSQL queries?

How to enable logging of all SQL executed by PostgreSQL 8.3? Edited (more info) I changed these lines : log_directory = 'pg_…

postgresql logging
Making Python loggers output all messages to stdout in addition to log file

Is there a way to make Python logging using the logging module automatically output things to stdout in addition to …

python logging error-logging
How to enable MySQL Query Log?

How do I enable the MySQL function that logs each SQL query statement received from clients and the time that …

mysql logging
How to write logs in text file when using java.util.logging.Logger

I have a situation in which I want to write all logs created by me into a text file. We …

java logging
Log all queries in mysql

Is it possible for me to turn on audit logging on my mysql database? I basically want to monitor all …

mysql logging
How do I log a Python error with debug information?

I am printing Python exception messages to a log file with logging.error: import logging try: 1/0 except ZeroDivisionError as e: …

python exception logging exception-handling
Retrieve last 100 lines logs

I need to retrieve last 100 lines of logs from the log file. I tried the sed command sed -n -e …

linux logging sed
When to use the different log levels

There are different ways to log messages, in order of fatality: FATAL ERROR WARN INFO DEBUG TRACE How do I …

logging