-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Custom grouping patterns (#99)
Logster has offered grouping of logs that have identical messages, severity and backtraces for quite some time now. This commit introduces grouping based on regular expression patterns that can be defined via Logster's UI. Each pattern will group logs that match into a single row and you'll be able to navigate through the messages/backtraces/envs of the individual logs when you select the row. The row will have the same timestamp as the most recent log contained in the group. If you wish to undo the grouping, you can simply remove the pattern and all grouped logs will return to their original places in the logs list. You can also amend the pattern and any logs that don't match the pattern any more will be removed from the group and returned to their original place, and patterns that now do match the pattern will be added to the group. To enable this feature, add this line `Logster.config.enable_custom_patterns_via_ui = true` to your app, and you'll see a small cog icon to the bottom right corner that takes you to the settings page where you can manage your grouping (and suppression) patterns.
- Loading branch information
1 parent
c8f8786
commit 24d6cc9
Showing
67 changed files
with
1,888 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# A sample Guardfile | ||
# More info at https://github.com/guard/guard#readme | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Component from "@ember/component"; | ||
import { computed } from "@ember/object"; | ||
import { equal } from "@ember/object/computed"; | ||
|
||
export default Component.extend({ | ||
classNames: ["nav-controls"], | ||
classNameBindings: ["extraClasses"], | ||
disableBackButtons: equal("position", 0), | ||
|
||
disableForwardButtons: computed("position", "list.length", function() { | ||
return this.position === this.get("list.length") - 1; | ||
}), | ||
|
||
displayNumber: computed("position", function() { | ||
return this.position + 1; | ||
}), | ||
|
||
actions: { | ||
takeStep(dir) { | ||
const amount = dir === "back" ? -1 : 1; | ||
const newPos = this.position + amount; | ||
this.navigate(newPos); | ||
}, | ||
|
||
bigJump(dir) { | ||
const newPos = dir === "back" ? 0 : this.get("list.length") - 1; | ||
this.navigate(newPos); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.