Comments (6)
What do you want to have speced? That they actually parse these filetypes?
from request-log-analyzer.
For example, you can do this:
class MyFileFormat < RequestLogAnalyzer::FileFormat::Rails
# Add some additional lines here besides the standard Rails lines
# Also, add some trackers to the report.
# Hack the request class
class Request < RequestLogAnalyzer::FileFormat::Rails::Request
# hack the request class here
end
end
See http://wiki.github.com/wvanbergen/request-log-analyzer/creating-your-own-file-format-definition for more information. This should behave as expected and currently is completely unspeced. We use this at Floorplanner to parse some of the custom lines we add to our log, like the current user and his account type.
from request-log-analyzer.
So what do you want to spec? The hacks?
from request-log-analyzer.
- When subclassing a file format, all line types of the parent file format should be parsed, and the newly added line types should be parsed as well.
- The parent file format should be left unchanged (so it should not parse any of the added line types).
The last bullet seems very logical/simple, but I really struggled to get this working correctly when I was implementing fileformat subclassing.
The same points can be made for the report trackers.
from request-log-analyzer.
Had some problems implementing a FileFormat as described since line.header and line.footer are required which is not documented (raises invalid file format exception). For me is also unclear how to work with timestamp or categories etc. since i am a Ruby-Newbie.
from request-log-analyzer.
Hello Roele :) I think the first question is: what are you trying to implement and what have you got so far?
from request-log-analyzer.
Related Issues (20)
- Suggestions for Rails 4 logging improvement?
- "Argument list too long" for too many log files HOT 4
- undefined method `to_d' HOT 10
- sample output wiki page is empty HOT 2
- Don't use eval to convert dictionary values
- unable to parse oink files HOT 1
- SyntaxError isn't caught when parsing parameter hashes (via eval) HOT 1
- Exception on ActionDispatch::Http::UploadedFile log? HOT 3
- Breaks when used with dragonfly HOT 2
- Dealing with timezones? HOT 7
- Teaser check failed HOT 2
- Aggregate the same controller#action with different content types
- Changing mail sender HOT 2
- Add AWS Cloudfront Support HOT 1
- Regexp doesn't work HOT 1
- Table columns for line numbers in the source table are defaulting to limit: 4 instead of limit: 8
- request_log_analyzer/controller.rb:277:in `handle_progress': undefined method `set' for nil:NilClass (NoMethodError)
- wiki/In-depth-analysis is outdated HOT 1
- change column width HOT 1
- Remove `bin/console` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from request-log-analyzer.