Comments (2)
Hmm I see the problem, it because of this:
>>> LOG_VIEWER_PATTERNS = ['\d\d\d\d\d\d\d\dT\d\d\d\d\d\dZ#USR=\d#AU=\d#IU=\d#DVC=\d#AD=\d#PD=\d']
>>> reversed_patterns = [x[::-1] for x in LOG_VIEWER_PATTERNS]
>>> reversed_patterns
['d\\=DP#d\\=DA#d\\=CVD#d\\=UI#d\\=UA#d\\=RSU#Zd\\d\\d\\d\\d\\d\\Td\\d\\d\\d\\d\\d\\d\\d\\']
>>>
your \d
is parsed to \\d
after reversed.
meanwhile we didn't support yet for complex regex patterns,
django-log-viewer/log_viewer/utils.py
Lines 55 to 57 in 607b5e4
from django-log-viewer.
Hmm I see the problem, it because of this:
>>> LOG_VIEWER_PATTERNS = ['\d\d\d\d\d\d\d\dT\d\d\d\d\d\dZ#USR=\d#AU=\d#IU=\d#DVC=\d#AD=\d#PD=\d'] >>> reversed_patterns = [x[::-1] for x in LOG_VIEWER_PATTERNS] >>> reversed_patterns ['d\\=DP#d\\=DA#d\\=CVD#d\\=UI#d\\=UA#d\\=RSU#Zd\\d\\d\\d\\d\\d\\Td\\d\\d\\d\\d\\d\\d\\d\\'] >>>your
\d
is parsed to\\d
after reversed.meanwhile we didn't support yet for complex regex patterns,
django-log-viewer/log_viewer/utils.py
Lines 55 to 57 in 607b5e4
Thanks for coming back. Is a workaround or solution available on how I may achieve to parse that log pattern of mine?
If there isn't, I'd like to exclude that log file entirely and only display other log files of mine that are much easier to parse (with levelname
for example). But I'm having an issue with that as well as per #28
from django-log-viewer.
Related Issues (20)
- LOG FILES need paging and search form HOT 1
- need html escape
- Help with LOG_VIEWER_PATTERNS HOT 5
- Not seeing log files with daphne and nginx combination HOT 1
- Create filter by LOGLEVEL HOT 1
- Base url cannot be resolved after upgrading to Django 3.x / authentication HOT 1
- Package for Version 1.1.3 missing at Pypi HOT 3
- Module "log_viewer" not found when installing version 1.1.3 HOT 1
- Log cannot branch HOT 2
- Log entries need format with new lines and indentation
- View logs from a remote machine or S3 object HOT 1
- LOG_VIEWER_FILES setting not working as intended HOT 1
- newline HOT 6
- Multiple log directories support
- Page is really hard to use with dark mode HOT 1
- Sub folder is not considered HOT 1
- LOG_VIEWER_PAGE_LENGTH setting doesn't work
- Page Refresh gives the following error
- Non-ascii characters parse incorrectly
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 django-log-viewer.