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.

logger configuration to log to file and print to stdout

I'm using Python's logging module to log some debug strings to a file which works pretty well. Now in addition, …

python file logging stdout
How to print a debug log?

I'd like to debug some PHP code, but I guess printing a log to screen or file is fine for …

php debugging logging
How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array

I'm trying to view the log for a query, but DB::getQueryLog() is just returning an empty array: $user = User::…

php logging laravel laravel-5
How can I find the method that called the current method?

When logging in C#, how can I learn the name of the method that called the current method? I know …

c# .net logging stack-trace system.diagnostics
Spring RestTemplate - how to enable full debugging/logging of requests/responses?

I have been using the Spring RestTemplate for a while and I consistently hit a wall when I'am trying to …

java debugging logging resttemplate
__FILE__, __LINE__, and __FUNCTION__ usage in C++

Presuming that your C++ compiler supports them, is there any particular reason not to use __FILE__, __LINE__ and __FUNCTION__ for …

c++ debugging logging c-preprocessor
Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

I've got an interesting problem in which the org.apache.log4j.Logger class is not found during runtime. I'm …

java logging classpath classloader intuit-partner-platform
Write to Windows Application Event Log

Is there a way to write to this event log: Or at least, some other Windows default log, where I …

c# .net windows logging event-log
Most useful NLog configurations

What are the best or most useful configurations for logging with NLog? (These can be simple or complex, as long …

.net logging mono nlog
Console logging for react?

I'm super new to React and I'm trying to get it set up for Meteor and piecing stuff together from …

javascript reactjs meteor logging jsx