Questions tagged [logfiles]
215 questions
2
votes
1 answer
How customise log file on Yii Framework?
I am trying to handle errors on my website. I logs each error in my log files, but I would like to know how to customize the message that is recorded in the log file.
For now, I get this message:
2013/09/30 10:08:59 [error] [exception.CException]…

Florent
- 761
- 1
- 10
- 24
2
votes
1 answer
Reading a large log file in C#
For my project, I need to extract message types from a log file. I have a 700 MB log file which contains about 4.7 million lines and I need to read each entry line by line and extract the message field. I need to find the size of message in each…

Sridhar
- 59
- 1
- 2
- 8
2
votes
1 answer
Viewing Oracle log files
I have an administrative account in Oracle 9i. I need to run some SELECT scripts on the database in SQL Navigator. The scripts are written on the fly in the 'SQL Editor' window of SQL Navigator and are not saved after the running.
The questions…

Snowjay
- 23
- 1
- 5
2
votes
3 answers
perl count yesterdays hits in logfile
I am working on an assignment where i need to parse a log file and create a website based on said log file. one of the requirements is that i count the number of hits that happened on yesterdays, im lost when it comes to this ive attached my code…

user1819703
- 23
- 3
2
votes
3 answers
TempDB Log File Growth Using Global Temp Tables
This is really a two prong question.
One, I'm experiencing a phenomenon where SQL server consumes a lot of tempDB log file space when using a global temp table while using a local temp table will consume data file space?
Is this normal? I can't find…

JayRu
- 319
- 3
- 11
2
votes
2 answers
How can I extract the latest rows from a log file based on latest date using Powershell
I'm a relatively new Powershell user, and have what I thought was a simple question. I have spent a bit of time looking for similar scenarios and surprisingly haven't found any. I would post my failed attempts, but I can't even get close!
I have a…

Ben Allsup
- 23
- 5
2
votes
0 answers
create custom log file for every time controller action is run?
I would like to create a log file for every time I run true controller#action
to better debug a complex controller action in my application.
My controller:
class GameController < extends ApplicationController
def game
sm_logger.info("Creating…

Rubytastic
- 15,001
- 18
- 87
- 175
2
votes
3 answers
How to see the whole portion of the Updated Content of a file
I have a application where the log files are being generated in a Linux Machine .
I want to monitor the application while it is in production , so when i used the tail command with the log file name , it only shows only a portion of the updated file…

user1253847
- 5,241
- 10
- 29
- 28
1
vote
1 answer
Merging two different XML log files (trace and messages) using date and timestamp?
I need to merge two XML log files. One log file contains a trace with position updates. The other log file contains the received messages. There can be multiple received messages without having a position update inbetween.
Both logs have…

Sebastian Mauthofer
- 61
- 10
1
vote
1 answer
Creating log file on windows mobile 6
I'm writing a program on windows mobile 6 in C# and I want it to collect data from GPS-module every second. What is the simplest way to store it on the phone? I'm thinking about either txt or XML file. What do you recommend?

user1084156
- 35
- 2
1
vote
4 answers
Conversion problems in C++ (string expected)
I have a function that I cannot touch, Is a "log maker", It puts something to print in a file an show it up when I run the file. The problem is that the function only gets const string so if I want to print something I have to convert everything in…

Urien
- 33
- 6
1
vote
6 answers
How to temporarily disable the log in SQL2000/2005?
Is there a way to stop the log file from growing (or at least from growing as much) in SQL2000/2005?
I am running a very extensive process with loads of inserts and the log is going through the roof.
EDIT: please note I am talking about an…

JohnIdol
- 48,899
- 61
- 158
- 242
1
vote
2 answers
how to create new directory everyday having its name as current date
Date dir = new java.util.Date(System.currentTimeMillis());
String baseDir = "/home/gaurav/usr/logs/ESBegin/";
String newDir = createDateBasedDirectory(baseDir, dir);
Logger logger = Logger.getLogger("MyLog1");
FileHandler fh;
try {
//…

Gaurav
- 173
- 1
- 13
1
vote
2 answers
How large does a log file get after it updates every database table field?
My general question is, say you have a SQL Server 2005 database that's 20G in size and a log file that is empty. If you run a series of updates that touch each table and each row exactly once, will the log file grow to the same size as the database?…

Peach
- 2,687
- 4
- 23
- 26
1
vote
2 answers
Exclude extensions in filename filter in Java
My Controller method (which has a method to list the files, from a path mentioned in the property file, on JSP)
private String[] getFileListing(String servers) throws IOException {
Properties prop = new Properties();
String…

Niharika Pandey
- 13
- 5