[PR #46] [CLOSED] Changes to allow filtering by regex #234

Closed
opened 2026-02-26 05:31:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NarrativeScience-old/log.io/pull/46
Author: @nachobayugar
Created: 12/28/2012
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • deb2c74 changes to allow regex filters
  • 722432f changes to allow filtering by regex - screen_search

📊 Changes

6 files changed (+153 additions, -10 deletions)

View changed files

📝 lib/client/css/web_client.css (+39 -1)
📝 lib/client/index.html (+3 -0)
📝 lib/client/js/history.js (+14 -0)
📝 lib/client/js/stream.js (+16 -1)
📝 lib/client/js/ui/renderers.jquery.js (+33 -7)
📝 lib/client/js/ui/screen_search.jquery.js (+48 -1)

📄 Description

Hi!

I've forked the project in order to make some chanhges that I find usefull.

They are just some litle changes. The idea behind them is the following:
Sometimes, in the company I work, whe deploy a new version of any application, and we see logs in order to know if these new version is working fine. In such situations, sometimes, we just want to see only if an Error log is generated. So, to allow seeing only errors logs (or any log matching with any desired regular expression) in a Stream or in a History screen, I've made some changes.

The changes where made only in the client, without modifying any previous behavoiur of log.io.
Specifically, the changes are:

index.html
Line 86:


Line 97:

web_client.css:
From Line 144 to Line 186: Added styles for screen_filter

stream.js:
It was added the filter property when a new Stream is created (this.filter = null)
Lines 56 to 65: add the condition which allows filtering by regex

history.js: Same as stream.js

renderers.jquery.js
Lines 125 to 133: was added a condition to allow filtering logs by regex in stream
Lines 227 to 232: Was added a condition to allow filtering logs by regex in history (similar to the previous lines).

I wish you accept my pull request!!!

Best Regards!!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NarrativeScience-old/log.io/pull/46 **Author:** [@nachobayugar](https://github.com/nachobayugar) **Created:** 12/28/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`deb2c74`](https://github.com/NarrativeScience-old/log.io/commit/deb2c741c501c3165621e9bc90f9c9948164c127) changes to allow regex filters - [`722432f`](https://github.com/NarrativeScience-old/log.io/commit/722432fd181e0007557417ffb4a5f79e2bbdad8e) changes to allow filtering by regex - screen_search ### 📊 Changes **6 files changed** (+153 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `lib/client/css/web_client.css` (+39 -1) 📝 `lib/client/index.html` (+3 -0) 📝 `lib/client/js/history.js` (+14 -0) 📝 `lib/client/js/stream.js` (+16 -1) 📝 `lib/client/js/ui/renderers.jquery.js` (+33 -7) 📝 `lib/client/js/ui/screen_search.jquery.js` (+48 -1) </details> ### 📄 Description Hi! I've forked the project in order to make some chanhges that I find usefull. They are just some litle changes. The idea behind them is the following: Sometimes, in the company I work, whe deploy a new version of any application, and we see logs in order to know if these new version is working fine. In such situations, sometimes, we just want to see only if an Error log is generated. So, to allow seeing only errors logs (or any log matching with any desired regular expression) in a Stream or in a History screen, I've made some changes. The changes where made only in the client, without modifying any previous behavoiur of log.io. Specifically, the changes are: index.html Line 86: <div class="screen-filter"><a href="#" class="result-count"></a><input type="text" class="inactive" name="filter" title="Regex Filter" value="Regex Filter"/></div> Line 97: <div class="screen-filter"><a href="#" class="result-count"></a><input type="text" class="inactive" name="search" title="Regex Filter" value="Regex Filter"/></div> web_client.css: From Line 144 to Line 186: Added styles for screen_filter stream.js: It was added the filter property when a new Stream is created (this.filter = null) Lines 56 to 65: add the condition which allows filtering by regex history.js: Same as stream.js renderers.jquery.js Lines 125 to 133: was added a condition to allow filtering logs by regex in stream Lines 227 to 232: Was added a condition to allow filtering logs by regex in history (similar to the previous lines). I wish you accept my pull request!!! Best Regards!! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 05:31:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#234
No description provided.