logging

"Write-Error" (write in Powershell, used in C#) works BUT Write-Debug doesn´t work - Why?

Hello, I have written a program with C#, that creates a logfile and fills this by using log4net. This program starts powershell-scripts. The scripts use log4net, too. It works: > C#: > ps.Runspace.SessionStateProxy.SetVariable("myMethod",(Action<Level,string>)myMethod); > ps.AddCommand(System.IO.Path.Combine(pathScripts, testSkript...

NHibernate: Logging

Hi all. I want to disable logging for one property in nhibernate. I am logging all the nhibernate queries , but, when i insert a huge binary file, it logs all the bytes. So i want to log all the queries and params except the binary ones. Thanks. ...

ruby socket log server

We use the default ruby logging module to log the errors. We use the delayed_job which is using many worker processes. So we could not manage the log files. We need the ruby based log server with rolling file appender and archive facility so that we can push the logs to the log server and let the log server to manage the logging task. ...

Pass properties to log4j before it loads

Is there a way to pass data or setting to log4j before it loads and then use that property within the config file. I was assuming there is a system properties I could use: log4j.appender.R.File=/usr/local/pfs/logs/${ws.host}/log4j.log Where ws.host is the property I want to use. But how can I set that value? Also, I am in a web envi...

Is there a way to redirect output to external console from NLOG in asp.net app?

I just started using NLog in my asp.net application, and I need to see log messages in real time. When I run it in VS2010 I can look at VS output window, but when I run it on the test box I obviously don't have that option. What I need is when my asp.net app starts a console window should open and show log entries in real time. Any ide...

Google apps login file

In google app engine, there is file called login. I need to modify this login file. It is in my local host, but I can't find out where it is stored. Can anybody help me to find the solution? ...

Logging strategy for GUI program

I'm thinking it may be beneficial to sprinkle some debug logging throughout my app (a painting-type program), and to have this info written to a file. My current debugging strategy is to hook up a custom exception listener (sys.excepthook) and to allow the user to e-mail me a copy of the stack trace that caused the crash. This has been ...

Logging worker processes with Parallel Python

I've inherited the maintenance of some scientific computing using Parallel Python on a cluster. With Parallel Python, jobs are submitted to a ppserver, which (in this case) talks to already-running ppserver processes on other computers, dishing tasks out to ppworkers processes. I'd like to use the standard library logging module to log...

How to print Django's runserver output to a file?

hi, when i develop my django app locally, i use python manage.py runserver and all errors messages (like Error 500 ...) are printed in the terminal. It is useful because it enables to put some printin the code and check the values of some variables. But when the app is executed via fastgci on a remote server i can't see those messages....

How to save Rails log to database outside the application?

I'm trying to save the Production environment log to the database on other server.. What I mean that when some errors shown I want to open ssh and check the end of production.log.. What I want is to go to the other database (on other server maybe) ant check it out. I want the logged information to be the same as I see in the *.log, cont...

log4j.xml file placement

i have created a log4j util class where i'm picking up the file using org.apache.log4j.xml.DOMConfigurator.configure("log4j.xml"); but when testing, it throws log4j:ERROR Could not open [log4j.xml]. java.io.FileNotFoundException: log4j.xml (The system cannot find the file specified.) at java.io.FileInputStream.<init>(FileInputStre...

Managing a Large Number of Log Files Distributed Over Many Machines

We have started using a third party platform (GigaSpaces) that helps us with distributed computing. One of the major problems we are trying to solve now is how to manage our log files in this distributed environment. We have the following setup currently. Our platform is distributed over 8 machines. On each machine we have 12-15 process...

how do i use the mysql general log?

I notice a very weird problem in my code. I am inserting a value of 128 but in my database it says 127. I'd like to look at the mysql general/query logs however i dont ever see any log files produce no matter what i do. I tried -l , -l with an absolute path and --general_log_file. No luck. I also used mysqladmin flush-logs. Still nothin...

tomcat log format disable the ipv6 format

Here are three log exmaples: 127.0.0.1 - - [17/Sep/2010:14:03:07 +0800] "GET /docs/logging.html HTTP/1.1" 200 24040 "http://localhost:8000/docs/manager-howto.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 0:0:0:0:0:0:0:1 - - [26/Oct/2010:09:53:30 +0800] "GET /docs/images/tomcat.gif HTTP/1.1" 200 193...

Grails Logging during integration tests

Hi, I've got few issues with Grails logging during test [running grails test-app, Grails 1.3.5]: 1 I've got some debug/info logging in my application and it works fine when running the app [grails run-app]. However when I want to test my app, none of it is written to the System.out/System.err files nor to file appender. How can I enab...

Issues replacing Log4j with LogBack, log4j-over-slf4j.jar shortcomings

So I've been porting some of our services to use Logback over log4j and I've been using the log4j-over-slf4j jar to spoof log4j for our legacy dependencies. The only issue is log4j-over-slf4j doesn't implement many of the classes of log4j so I'm seeing a decent few class not found exceptions from dependent jars. How have people got aroun...

Problem with Kohana 2.3.4 error logging

I have some problem with error logging in Kohana v2.3.4. In the index.php I have kept the default settings: error_reporting(E_ALL); ini_set('display_errors', TRUE); In config.php I have set $config['log_threshold'] = 3; $config['display_errors'] = FALSE; The problem is kohana is not handling php syntax errors. Instead the default ph...

Apache Chainsaw with Python and multiple tabs

I am using Apache Chainsaw with python (using the XMLLayout formatter, sending log messages to Chainsaw) How can I make Chainsaw display multiple log tabs, one for each logging source ? currently it displays all messages, regardless of which process sent them, to a single tab ...

Debugging Delayed_Jobs

I'm looking to debug a delayed jobs class. First off I added the config/initializers/delayed_job_config to move my logging to my log/production.rb file. Delayed::Job.destroy_failed_jobs = false Delayed::Worker.logger = Rails.logger Then in the actual file I'm doing in the actual file class TestJob < Struct.new() logger.debug("test ...

Force `tee` to run for every command in a shell script?

I would like to have a script wherein all commands are tee'd to a log file. Right now I am running every command in the script thusly: <command> | tee -a $LOGFILE Is there a way to force every command in a shell script to pipe to tee? I cannot force users to add appropriate teeing when running the script, and want to ensure it log...