Questions tagged [logfile]

A log file is a file that contains a list of events, which have been "logged" by a computer.

A log file is a file that contains a list of events, which have been "logged" by a computer. Log files are often generated during software installations and are created by Web servers, but they can be used for many other purposes as well. Most log files are saved in a plain text format, which minimizes their file size and allows them to be viewed in a basic text editor.

701 questions
10
votes
3 answers

Debugging Stack overflow errors on background services

This is not really a question, but an answer which would hopefully help other people. Those who've written a windows service before, know what a mission it could be to find a bug in it, particularly if it only happens on the live environment. In my…
hannodb
  • 223
  • 1
  • 11
9
votes
2 answers

Windows Log File Viewer (Tail) that displays lines in reverse order

I am looking for a free Windows GUI log file viewer that can display lines in reverse order with the newest lines at the top of the screen. Bonus points if it has an indication that there has been an update to the file. Open source also a plus but…
Automate
  • 183
  • 1
  • 9
8
votes
2 answers

How do I write the value of a single property of a object?

This is how my current script looks like: $cpu = Get-WmiObject win32_processor | select LoadPercentage logwrite $cpu #this fuction writes $cpu into a .txt file The output of the file is: @{LoadPercentage=4} I want it to be only the number so that…
verfluecht
  • 493
  • 6
  • 24
8
votes
1 answer

Logback - do not create empty log files at startup

I have a project with a lot of 'tool' classes that have their own logging. Those logfiles are created at startup of the application, but remain empty, until used. Is it possible to tell logback that empty files should not be created at startup? But…
Dimitri Dewaele
  • 10,311
  • 21
  • 80
  • 127
8
votes
1 answer

Limiting mysql log file size

I have a mysql log file that regularly goes over 30gb, this sucks when you realise that your server is full because of this file. I need a simple solution to limit this file to about 1gb, i don't need logs that run that long, and i'd rather avoid…
user922592
7
votes
0 answers

Nginx log full of `NULL` characters

I'm running Nginx in a Docker container, and my error log keeps filling up with NULL characters, so it looks like this: I had Nginx and PHP containers both set to output errors to error.log. When I set PHP to use a separate log file, I get fewer…
And Finally
  • 5,602
  • 14
  • 70
  • 110
7
votes
2 answers

Where I can see the system log of jenkins

The Jenkins that we use for ETL automation stopped its service and then restarted it using command prompt. But I wanted to investigate about the reason that caused it to stop. But in System log file of Jenkins I can see only today's log. How can I…
Bommu
  • 229
  • 1
  • 4
  • 14
7
votes
4 answers

docker tomcat Log issue

Docker container can only to daemon mode: I run catalina.sh to start the tomcat. But the problem is my log will not appear in catalina.out. I can look at `docker logs , but this certainly cannot run in a production environment. I would like to ask…
zhangyi
  • 71
  • 1
  • 1
  • 2
7
votes
3 answers

mysql: turn on the general log

I try to turn on the general log on the mysql I use the xampp as the local server and this is my.ini log_output = FILE general_log = 1 general_log = "mysql_query.log" I can't find the file at all, please help
user1128331
  • 707
  • 4
  • 10
  • 20
7
votes
2 answers

Log4J print empty line to logfile

In java you could use System.out.println() to print a blank line but how does it work with log4j in a logfile? There I also want to have one or more blank lines inside the logfile. I already read the follwing: log4j how to append blank line But this…
Metalhead89
  • 1,740
  • 9
  • 30
  • 58
7
votes
1 answer

SQL Server database has 2 log files and I want to remove one. HOW?

I am new to this. I have a database (created by someone else) that has 2 .ldf files. (blah_log.ldf and blah_log2.ldf). My manager asked me to remove one of the log files but I cannot. How do I do this? I tried to put it on another server, detach,…
Catahoula
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Write date and time into LOG file in PHP

I would like to write into my LOG file the current date and time : $logFileName = 'file://c:\MYLOG.log'; // /var/logs/file.log $logContent = "Running through the function".PHP_EOL; $date = (new DateTime('NOW'))->format("y:m:d h:i:s"); if ($handle =…
Tofuw
  • 908
  • 5
  • 16
  • 35
6
votes
1 answer

Logback: One file with maximum file size

my system support team needs one simple log-file, with a maximum size of 10MB. Older log-lines can be deleted when the file reaches 10MB. So roll out the oldest lines. What is a good appender for this? I have one appender, but this still created a…
Dimitri Dewaele
  • 10,311
  • 21
  • 80
  • 127
6
votes
2 answers

reading log file in java

Is it possible to read log files (abc.log) using java? I want a specific string from my log file. suppose this is the content of my logfile. I want the time stamp only (eg: 05:08:37) and print it the console. 2012-12-16 05:08:37,905 [Thread-1] INFO…
smya.dsh
  • 651
  • 5
  • 10
  • 23
5
votes
2 answers

How do you specify output log file using structlog?

I feel like this should be super simple but I cannot figure out how to specify the path for the logfile when using structlog. The documentation states that you can use traditional logging alongside structlog so I tried this: logger =…
user18730037
1
2
3
46 47