Hi,
I am working with a django project, I haven't started. The developed working on the project left. During the knowledge transfer, it was told to me that all the events are logged to the database. I don't find the database interface useful to search for logs and sometimes they don't even log(I might be wrong). I want to know, if there...
I think this is a pretty basic question, but after Googling around I can't seem to find the answer.
What I need is a way to log some custom output with log4j during Spring bean construction. I have a factory class called ResponderFactory (being used as an instance factory in Spring) with a factory method that can throw 2 different types...
I have a servlet. But it is not working as desired. Hence for debugging purposes, I want to print statements to the java console(the one that can be opened using the java icon in taskbar). However, if I use System.out.println("message"), it doesnt display in java console.
Is there any alternative way where I can display messages to the ...
I am using logback/slf4j to do my logging. I want to parse my log file to analyze some data, so instead of parsing a great big file (mostly consisting of debug statements) I want to have two logger instances which each log to a separate file; one for analytics and one for all purpose logging. Does anyone know if this is possible with Log...
I want to log the URLs of all the popup attempts in my FireFox browser running on Windows.
Is there a way to do this? Either somehow externally, or internally with an extension?
...
How to check whether all the jboss services are running or not in unix ?
...
I'm trying to create a new log file every hour with the following code running on a server. The first log file of the day is being created and written to fine, but no further log files that day get created. Any ideas what might be going wrong? No exceptions are thrown either.
private void LogMessage(Message msg)
{
string name = _log...
Following on from my previous question...
The following code creates log files on a web server:
private void LogMessage(Message msg)
{
using (StreamWriter sw = File.AppendText(_logDirectory + DateTime.Now.ToString("yyyyMMddHH") + ".txt"))
{
sw.WriteLine(msg.ToString());
}
}
The log files are linked to from an admi...
our application is deployed on jboos As 4.0x, we face some issues in jboss logging.. whenever the server is
restarted,
jboss stops logging , and there is no update in server.log. After that it is not updating the log file.
then we do touch cmd on log4j.xml, so that it creates the log files again.
Please help me in fixing the issue we...
I have been coming across these two words more often but i didn't see much difference in these? I mean want to know are they used interchangeably or there are some differences in those two?
Thanks.
...
Do you think analyzing generate logs during testing cycles can increase quality?
...
Hey
This is a bit of a weird request but I am trying to set some jvmargs in the log4j.properties file. At present I use ant to for example set some args....
jvmarg value="-Dmail.smtp.socketFactory.port=465"
... but it would be great to group a few of these logging relevant arguments into the .properties file. Does anyone know how to d...
I've got a web application that, for performance reasons, throws any data sent into a logfile.
I've got two concerns with this approach:
How do I best rotate logs, in order to not lose data?
For each user session multiple requests are logged. Each request has a unique id so there is an easy way for me to tie the requests to the sessio...
How can I switch off logging for BeanUtils.copyProperties ? It creates way too much logs and hampers the log file readability. Thanks heaps..
Sample code
BeanUtils.copyProperties(someDataobject,someActionForm);
In the log I see hunders of lines like below
EBUG org.apache.commons.beanutils.PropertyUtils - setSimpleProperty:
In...
I am developing large data collecting ASP.Net/Windows service application-pair that uses Microsoft SQL Server 2005 through LINQ2Sql.
Performance is always the issue.
Currently the application is divided into multiple larger processing parts, each logging the duration of their work. This is not detailed and does not help us with anything...
In the code below if I get into the if statement I can safely say my site is under attack. What information is it a good idea to log?
Any recommendations on actions that can be taken to minimize the damage at this point?
protected void btn_Search_Click(object sender, EventArgs e)
{
if(tb_SearchBox.Text.Length > tb_SearchBox.MaxLengt...
Hi folks,
I was working on a project a few months ago, and had the need to implement an award system. Similar to S*tackOverflow's badge system*. Badges
I might have not implemented it in the best possible way, and I am curious what your say in it would be.
What would a good way to track user activities, needed for badge awarding be?...
Okay. I have completed my first python program.It has around 1000 lines of code.
During development I placed plenty of print statements before running a command using os.system()
say something like,
print "running command",cmd
os.system(cmd)
Now I have completed the program. I thought about commenting them but redirecting all these un...
I currently am adding some features to our logging-library. One of these is the possibility to declare a module-name for a class that automatically gets preprended to any log-messages writing from within that class. However, if no module-name is provided, nothing is prepended. Currently I am using a trait-class that has a static function...
I've just started playing with ELMAH.
was wondering, is there a way to pass info, eg a variable value, or some other text when an exception is thrown?.
Currently Im using this:
ErrorSignal.FromCurrentContext().Raise(e);
...