tagged [logging]

How to log something in Rails in an independent log file?

How to log something in Rails in an independent log file? In rails I want to log some information in a different log file and not the standard development.log or production.log. I want to do this logg...

3 Dec at 16:24

How to get Android crash logs?

How to get Android crash logs? I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find ...

4 Sep at 18:19

Location of GlassFish Server Logs

Location of GlassFish Server Logs I have NetBeans IDE installed on a Windows 7 64-bit machine. Obviously, NetBeans comes with the GlassFish server. I am currently having problems with a project and wo...

12 Dec at 09:55

Retrieve last 100 lines logs

Retrieve last 100 lines logs I need to retrieve last 100 lines of logs from the log file. I tried the sed command Please let me know how can I change this command to specifically retrieve the 100 line...

6 Aug at 12:10

In C# should my Common.Logging logger be an instance member or static?

In C# should my Common.Logging logger be an instance member or static? Looking [a project](https://github.com/quartznet/quartznet/tree/master/src/Quartz.Examples/example1) that uses [Common.Logging](h...

21 May at 15:20

How to see query history in SQL Server Management Studio

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? If not, can you give me any advice on how to...

23 Aug at 06:31

log4j logging hierarchy order

log4j logging hierarchy order What is the hierarchy of log4j logging? Which one provides the highest logging which would be helpful to troubleshoot issues? Can any one provide the order or hierarchy i...

12 Oct at 20:6

Append text with .bat

Append text with .bat I want to create a log of every operation processed in a batch file and used the following but to no avail. How do I fix it (the file was not created)?

30 Jul at 14:35

How to write to a file, using the logging Python module?

How to write to a file, using the logging Python module? How can I use the [logging](https://docs.python.org/3.7/library/logging.html#module-logging) module in Python to write to a file? Every time I ...

11 Apr at 04:18

MySQL/Writing file error (Errcode 28)

MySQL/Writing file error (Errcode 28) I have the following error with one of our web applications - Any ideas - is this some hard disk space issue on my server?

3 Jun at 13:37

How to disable logging on the standard error stream?

How to disable logging on the standard error stream? How to disable [logging](http://docs.python.org/library/logging.html) on the standard error stream in Python? This does not work:

7 Jul at 13:57

ILogger and DependencyInjection in ASP.NET Core 2+

ILogger and DependencyInjection in ASP.NET Core 2+ I notice there is no explicit `ILogger` registration in `ConfigureServices` in `Startup.cs`. First question: how does `ILogger` get injected into e.g...

Do __LINE__ __FILE__ equivalents exist in C#?

Do __LINE__ __FILE__ equivalents exist in C#? For logging purposes were my friends in C/C++. In Java to get that information I had to throw an exception and catch it. Why are these old standbys so neg...

30 Mar at 06:52

heroku - how to see all the logs

heroku - how to see all the logs I have a small app on heroku. Whenever I want to see the logs I go to the command line and do That only shows me about 100 lines. Is there not a way to see complete lo...

9 Sep at 22:34

Logging in a C# library

Logging in a C# library What is the best practise regarding logging inside a library? I am creating a C# library to be used by users and at some points I want to log an error or a warning. Is it a goo...

25 Mar at 11:15

How can I log the generated SQL from DbContext.SaveChanges() in my Program?

How can I log the generated SQL from DbContext.SaveChanges() in my Program? According [this](https://stackoverflow.com/a/1412902/1594487) thread, we can log the generated `SQL` via `EF`, but what abou...

Get Output From the logging Module in IPython Notebook

Get Output From the logging Module in IPython Notebook When I running the following inside IPython Notebook I don't see any output: Anyone know how to make it so I can see the "test" message inside th...

Write to EventLog in .Net Core

Write to EventLog in .Net Core I need a way to write to Windows' event viewer in my app that's using dnx. But, the `EventLog` class isn't available in the `System.Diagnostics` namespace so I'm stuck. ...

29 Aug at 17:16

What's the most widely-used logging framework in C#?

What's the most widely-used logging framework in C#? I'm looking into how to implement logging in my C# app - its a DLL class library. What logging frameworks are most widely used - what would give us...

11 Aug at 12:54

Why do loggers recommend using a logger per class?

Why do loggers recommend using a logger per class? As per NLog's documentation: > Most applications will use one logger per class, where the name of the logger is the same as the name of the class. Th...

29 Jun at 19:12

What is the best way to dump entire objects to a log in C#?

What is the best way to dump entire objects to a log in C#? So for viewing a current object's state at runtime, I really like what the Visual Studio Immediate window gives me. Just doing a simple Will...

Swift: print() vs println() vs NSLog()

Swift: print() vs println() vs NSLog() What's the difference between `print`, `NSLog` and `println` and when should I use each? For example, in Python if I wanted to print a dictionary, I'd just `prin...

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

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: How can I view the...

29 Jan at 00:59

tool analyzing log4net logs

tool analyzing log4net logs Is there a tool which can be used to analyze log4net logs. Particulary I would like to extract two method calls by thread id and analyze the duration between the two, to cr...

10 Dec at 13:5

How can I add a Trace() to every method call in C#?

How can I add a Trace() to every method call in C#? I am having a hard time tracking down a lock issue, so I would like to log every method call's entry and exit. I've done this before with C++ withou...

17 Feb at 23:12