TLDR: if I built a multipurpose parser by hand with different code for each format, will it work better in the long run using one chunk of parser code and an ANTLR, PyParsing or similar grammar to specify each format?
Context:
My job involves lots of benchmark log files from ~50 different benchmarks. There are a few in XML, a few HTML,...
I am looking for ideas on an efficient way to implement a log window for a windows forms application. In the past I have implemented several using TextBox and RichTextBox but I am still not totally satisfied with the functionality.
This log is intended to provide the user with a recent history of various events, primarily used in data-g...
my_macro << 1 << "hello world" << blah->getValue() << std::endl;
should expand into:
std::ostringstream oss;
oss << 1 << "hello world" << blah->getValue() << std::endl;
ThreadSafeLogging(oss.str());
Thanks!
EDIT: the accepted answer is awesome. Can we upvote 8 more times and win this responder a badge?
(The answer only needs 6 mor...
I have a Rails application which has an action which is invoked frequently enough to be inconvenient when I am developing, as it results in a lot of extra log output I don't care about. How can I get rails not to log anything (controller, action, parameters, complection time, etc.) for just this one action? I'd like to conditionalize i...
Hi,
Let us say I have a log file that has events that happened in the past. Now for some reason suppose that I am not able to track those events in real time using GA but want to do it at a later point of time using some kind of batch processing. Can I somehow add those events to GA and also keep the original time the event occurred.
T...
Well, now that I've gotten a bit further into it, I realize that this is a stupid question, and wrong. Turns out that the author of the legacy code I maintain was hi-jacking the error log to a different file with a php_init statement. The hi-jacking occurred at the same time as the output buffering was turned on, making it appear as thou...
I need to do logging in a c++ application. After googling for a while, I decided to use log4cpp.
is that a safe option to go with, or is there something better out there?
How do get started with installation and importing it to my application using windows xp, Visual Studio 2005?
TIA
...
My rails app kicks off a process with rufus-scheduler in an initializer. Here's a stripped-down version of the initializer's code:
# config.logger isn't available here, so we have to grab it from the Rails object
logger = RAILS_DEFAULT_LOGGER
logger.warn(Time.now.to_s + ": Starting Rufus Scheduler")
# run every Wednesday at 10 AM
cro...
I wrote a Formatter (test.MyFormatter) by extending the class java.util.logging.Formatter;
Now I want to use test.MyFormatter instead of java.util.logging.SimpleFormatter:
in the configuration file i replaced the entry:
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
with
java.util.logging.ConsoleHan...
I know this is possible in Linq-to-Sql, is it possible to automatically log all queries made through a particular ObjectContext in entity framework? In particular, I'm interested in the number of queries that are run in the lifetime of the ObjectContext.
...
I've inherited a large pile of Ruby code that's, frankly, close to impossible to understand for a mortal like myself. It's actually Rspec unit test code, but the structure is "highly unusual" to put it nicely.
What I'd like to be able to do is run the code, and have the following information logged somewhere:
every method that gets i...
Hi
I wondering abourt the functionality in Enterprise library and logging to file.
Is it so that it is able to create the logging folder and file and then setup the permissions needed to write entries into the logging file? Or is this somthing that has to be setup by the user.
...
I am using triggers in MySQL to log changes to the data. These changes are recorded on a row level. I can now insert an entry in my log table for each row that is changed. However, I also need to record the operation to which the changes belong.
For example, a delete operation like "DELETE * FROM table WHERE type=x" can delete multiple...
I have created a small web application in java. And now I want to add Logging features to it. But i don't want to use any available Logging framework like Log4j or something else, instead I want to create my own logging framework which can be expendable in future as well. So need some initial push ups for the same, And this is the right ...
Hi
I'm starting up a new project and am thinking of what things I should be logging. The logfile is only intended to help developers find bugs. The use case is that when an unhandled exception is thrown a notification is send to the developer, who have access to the logfile and stacktrace.
What things should I include in the logfile? L...
I have implemented multithreaded shared library in C++ (For Linux and Windows). I would like to add logging mechanism inside the library itself. The caller of the library is not aware of that. The log file would be same so i am wondering how could i design the thread safe logging if multiple process is using my library and trying to open...
I'm having problems with getting decent JavaScript error invormation in a Production environment.
When I'm developing I can just attach a debugger and (usually) fix the problem.
When I get the same error in a production environment however at best I see is an error report that looks like this:
Error: Object doesn't support this pro...
I know you can download the raw access logs with appcfg.py, but I'm really interested in all the information around a specific request like python logging statements, exceptions and api statistics (just like the online log viewer). Does anyone know if there is a way to get that information another way then having to build it yourself?
I...
In Java, several native methods e.g. in the Java Runtime Library may call regular (bytecode-based) methods. I would like to know if there is some VM command-line parameter or some instrumentation tool or API that I can use to such calls.
P.S. Note that I am not interested in calls to native code but from native code.
...
I am trying to use microsoft enterprise library logging framework in a c++/cli dll.
I tested it in a c++ application, and it worked beatifully. it is compiling in the dll, but does not work when I try to run it, and the error is not getting caught in my catch clause.
I have all the correct import and using statements in place - as it c...