I need to create a webserver that will respond to GET requests by serving pages from a specified folder, as well as log the pages the user is GETting, and the IP of the user.
The main trouble comes from me not knowing how to serve the directory listing to the user when overriding the do_GET method. Here is my code so far:
#!/usr/bin/...
I got a custom log, roughly 29MBs of user's data, including user agent. I want to parse through it (essentially just search) and find how many occurances of say, "Firefox" or "MSIE" appear in it, like a mini log parser.
This is where I am stumped.. What I was getting at is explode()ing newlines, and iterate through the array, use:
if ...
Hi,
Most of time my GLib program runs well. However, when logs like
** (process:pid): Message (recursed): blah lah blah
appear, the program will abort.
GLib manual says G_LOG_FLAG_RECURSION is considered fatal by default.
But I just can't understand what does "recursive messages" mean? When will recursed message occur?
Thanks
...
Is there any logger to asp.net like the System.ServiceModel.MessageLogging used in WCF?
...
I have a bizarre need here, and I am unsure of it's feasibility. I can only think how I would do it using threads (To create another thread that performs a Quine function along side a thread running the script I want to Quine and execute at the same time (without manually adding alerts everywhere!!!), but javascript doesn't have that fun...
I created a simple szenario using Log4net, but it seems that my appenders does not work because the messages are not added to the logfile.
I added the following to the web.config file:
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/>
</con...
What I am trying to do is pass multiple parameters to Log.Write without first creating a long string of them with newline escape characters.
Here is my current function:
public static void LogPipedEvent(string message)
{
//Split message on double pipe escape "||"
string newmessage = "";
string[] splitMessage...
I am making a small change to an existing application so that users can email us the log file when things go wrong. Even though it is c# the app is using Microsoft.VisualBasic.Logging.FileLogTraceListener.
This gets setup like this:
FileLogTraceListener fileLogTraceListener = listener as FileLogTraceListener;
fileLogTraceListener.Locat...
I am using Windows Server 2003 with IIS6 and Windows Server 2008R2 with IIS7.
I need to create a dashboard similar to google analytics that we be view via webpage by non-technical users. I figure this could be done analyzing IIS log files but I am not sure what the best route is for accomplishing this.
What is the best way to create a...
Hi,
i've a JavaScript application.
I'd like to use a logger but instead of logging to a console (like Firebug or Yahoo UI), I'd like to log to a file or several files.
Ideally, It should be possible to back up the files when they reach a certain limit.
thanks.
...
By refering msdn website and other community i was able to run my packages programmatically. I am using a console .net application to run my ssis package. i have hardcorded the location package. it runs smoothly
DTSExecResult pkgResults;
Application app = new Application();
Package p = app.LoadPackage(@"C:\somelocation");
pkgResults = p...
How can I remove / inspect / modify handlers configured for my loggers using the fileConfig() function?
For removing there is Logger.removeHandler(hdlr) method, but how do I get the handler in first place if it was configured from file?
...
Hello,
In my application we have a trace logger. We have log statements added at the beginning and end of most of the important methods tracing the method name and the parameter values. Now these trace statements are bloating the code and it is a bit of a pain to read through them.
I am considering how can I separate this aspect of the...
I find myself regularly looking at log files my code generates, can anyone suggest any good (free) utilities for reviewing large log files? I've been using notepad++ up to now but I was wondering if there are any better tools?
...
I'm using Microsoft.Practices.EnterpriseLibrary.Data.Database to create my accessors and execute my queries.
I'd like to know if there is anyway, within this scenario, to automatically log all queries and parameters that are being sent to the database.
...
What would use more memory if it were to output a message that was 15,000 lines?
Would System.out.println us more memory?
or Would System.setErr(new PrintStream(new FileOutputStream("tonsoflines.log"))) use more memory?
What uses more process or requires more memory to function? Visual output in a console window or writing to a file w...
In Spring MVC, an exception's stack trace is logged if it makes it all the way back up to the framework (for example, if there is a NullPointerException). Is there a simple way to do this using Spring's MBeanExporter?
I know that I could have try-catches in the method to do this, but that would lead to clutter. I checked the Spring doc...
We have a WPF application that we've deployed to the customer. However, the application is randomly fatally crashing with an "unexpected error" dialog box on the customer's computer. We need to be able to see the exception message and preferably stack trace as well, but because it's crashing randomly, we don't know where we should be put...
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 a log of why my app crashed?
...
By default Commerce Server's pipelines log to %WEBROOT%\pipelines\log, is there a configuration value that can change this location?
...