Comments (8)
Please test if the performance is fine. You probably should do it with byte-compiled code, I guess difference can be substantial.
By default it looks at up to 10 lines now, or until it finds a suitable submode.
from logview.
I don't want to make it look too deep, I fear it will be too slow. But you can always customize new variable logview-guess-lines
, 10 is not a hardcoded value.
from logview.
Unfortunately 10 lines isn't enough for my logs. We have a tid to name map at the beginning of our logs, so it could be 50 lines in.
from logview.
I had a log that started after 200 lines, so I set it to 250 and it recognized the style almost instantly. I think your code is more efficient than you think.
from logview.
In you case the first lines probably don't look anything like other log lines, so they are quickly skipped. But if I e.g. take a real log and make timestamps contain four digits after the point instead of three (so they are not matched, but still appear "promising"), it takes around 2-3 seconds with 10 lines here already.
from logview.
I just pushed a commit that makes Logview not consider all logview-guess-lines
if several (by default 3) look "promising", but don't yield a successful match. Please test if this is still good enough for your logs.
from logview.
Still works great.
from logview.
Implemented in 0.14. I raised the default value for logview-guess-lines
to 500, the default for logview-max-promising-lines
remains at 3.
from logview.
Related Issues (20)
- Syntax highlighting -- conflicts with whitespace-mode when buffer text is updated in any way HOT 5
- Selecting an alias submode does not work
- Support closer-to-ISO-8601 format for timestamps HOT 4
- Commands Not Assigned In read-only-mode HOT 4
- Thank you so much for this package HOT 1
- Simple examples of custom formats and setup HOT 7
- Should not add itself to auto-mode-alist HOT 1
- Auto-reverting does not work over Tramp HOT 1
- Add RFC 5424, ie. syslog levels
- Add submode for standard Python logging module HOT 1
- Add submode for Apache logs
- Add submode for PHP's Monolog
- Auto-Revert mode over Tramp freezes Emacs HOT 6
- Epoch Time Support HOT 4
- [Help] Unable to determine the log format HOT 3
- Can't get entries to be matched HOT 2
- modes derived from logview cannot refine font-lock HOT 9
- Color surrounding portions of log lines HOT 8
- Awesome mode! 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 logview.