-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Use jcabi-log to reduce startup time #3015
+994
−1,146
Closed
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6dd3a9f
Use jcabi-log to reduce startup time: Logger.debug(this, ...) instead…
koppor f39a887
Using %[exception]s for ", e"
koppor 1cd6dd3
Using %[exception]s for ", e.+"
koppor 7ee5d06
Eliminate String.format at logging
koppor 35b237a
eliminate ex.getMessage()
koppor 9718479
Rpleace `" + "` by nothign in string concatination
koppor 62b0b88
Fix for Logger.warn(this, ex.getMessage(), ex);
koppor 51c953e
More e.getMessage() repacements
koppor 16caf0c
Merge branch 'master' into jcabi-log
koppor fcf2989
Add ADRs
koppor f110e91
Get rid of %[exception]s by introducing org.jabref.Logger
koppor cacf776
Special case
koppor f9aee6d
Add support of directly logging an exception
koppor 6f3f386
More replacements
koppor dd8af65
Make use of org.jabref.Logger
koppor 1102986
Fix passing of Throwable
koppor 43cc99d
Fix checkstyle
koppor 0903374
Merge branch 'master' into jcabi-log
koppor baee8b3
Add ArchUnit rule for logging
koppor 0c0d26b
Finalze test with ArchUnit
koppor 49e9fe3
Fix name
koppor 131e7aa
Use Guava instead of self-written merge method
koppor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Use Architectural Decision Records | ||
|
||
We need to record the architectural decisions made on this project. | ||
|
||
## Considered Alternatives | ||
|
||
* No record | ||
* [DecisionRecord](https://github.com/schubmat/DecisionCapture) | ||
* [Michael Nygard's template](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions), maintainable by [adr-tools](https://github.com/npryce/adr-tools) | ||
* [Sustainable Architectural Decisions](https://www.infoq.com/articles/sustainable-architectural-design-decisions) | ||
* [Other templates](https://github.com/joelparkerhenderson/architecture_decision_record) | ||
|
||
## Conclusion | ||
|
||
* *Chosen Alternative: Decision Record* | ||
* That template is lean and fits most the development style |
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,15 @@ | ||
# Use jcabi-log | ||
|
||
We need to reduce startup time of JabRef (https://github.com/JabRef/jabref/issues/2966). | ||
One time consuming aspect is the logging | ||
|
||
## Considered Alternatives | ||
|
||
* [jcabi-log](http://log.jcabi.com/) | ||
* [TinyLog](http://www.tinylog.org/) | ||
|
||
## Conclusion | ||
|
||
* Chosen Alternative: jcabi-log (see https://github.com/JabRef/jabref/pull/3015) | ||
* org.jabref.gui.logging.GuiAppender strongly relies on Apache Log4j2. | ||
TinyLog does not support mirroring log outputs and thus we cannot easily switch to TinyLog. |
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,7 @@ | ||
# Architectural Decision Records | ||
|
||
This lists the architectural decisions for Eclipse Winery™ | ||
|
||
- [0000-use-architectural-decision-records.md](0000-use-architectural-decision-records) - Use Architectural Decision Records | ||
- [0001-use-jcabi-log.md](0000-use-jcabi-log) - Use [jcabi-log](http://log.jcabi.com/) | ||
- [template.md](template/) - the template |
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,36 @@ | ||
# <Short Title of the Issue> | ||
|
||
**UserStory:** <TICKET/ISSUE-NUMBER> | ||
|
||
<WRITE ONE SENTENCE DESCRIBING THE PROBLEM. (Optional)> | ||
|
||
## Considered Alternatives | ||
|
||
* <ALTERNATIVE 1> | ||
* <ALTERNATIVE 2> | ||
* <ALTERNATIVE 3> | ||
|
||
## Conclusion | ||
|
||
* *Chosen Alternative: <ALTERNATIVE 1>* | ||
* <FURTHER RATIONALE (Optional)> | ||
|
||
## Comparison (Optional) | ||
|
||
### <ALTERNATIVE 1> | ||
|
||
* + <ARGUMENT 1 PRO> | ||
* + <ARGUMENT 2 PRO> | ||
* - <ARGUMENT 1 CONTRA> | ||
|
||
### <ALTERNATIVE 2> | ||
|
||
* + <ARGUMENT 1 PRO> | ||
* + <ARGUMENT 2 PRO> | ||
* - <ARGUMENT 1 CONTRA> | ||
|
||
### <ALTERNATIVE 3> | ||
|
||
* + <ARGUMENT 1 PRO> | ||
* + <ARGUMENT 2 PRO> | ||
* - <ARGUMENT 1 CONTRA> |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stuff from Winery....