Comments (4)
I believe you just need to add backslashes before curly brackets in the regexp. Emacs regexp syntax is weird like that.
from logview.
That seems to have been the problem with the timestamp. But logview doesn't seem to be able to find any log entries. The following is an example of a log entry:
[1602175902 539952 2704 DEBUG] Some sort of message
The first two sets of numbers are the timestamp the next set of numbers is the thread id and then the log level and finally the message.
from logview.
Works for me. Note that debug-level entries are not highlighted by default.
Here is the config I used:
(setq logview-additional-timestamp-formats
'(("CUSTOM" (regexp . "[0-9]\\{10\\} [ 0-9]\\{6\\}")))
)
(setq logview-additional-level-mappings
'(("CUSTOM"
(error "ERROR")
(warning "WARN")
(information "INFO")
(debug "DEBUG")
(trace)
(aliases))))
(setq logview-additional-submodes
'(("CUSTOM"
(format . "[TIMESTAMP THREAD LEVEL]")
(levels . "CUSTOM")
(timestamp "CUSTOM")
(aliases)))
)
from logview.
I forgot a slash. Thanks!
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
- guess-submode Option to Search Past 1st Line HOT 8
- [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.