Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Improved logging, split by benchmark tests #50

Merged
merged 5 commits into from
Jul 20, 2018
Merged

Conversation

segabriel
Copy link
Member

No description provided.

@segabriel segabriel added the ready for review ready for review label Jul 20, 2018
@@ -51,6 +52,9 @@

private static final Logger LOGGER = LoggerFactory.getLogger(BenchmarksState.class);

private static final String MDC_BENCHMARK_DIR = "benchmarkDir";
private static final String MDC_BENCHMARK_NAME = "benchmarkName";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont need MDC_BENCHMARK_NAME since MDC_BENCHMARK_DIR is already uniquily defines path to log directory

<Route>
<RollingFile name="Rolling-${ctx:benchmarkDir}-${ctx:benchmarkName}"
fileName="${ctx:benchmarkDir}/${ctx:benchmarkName}.log"
filePattern="${ctx:benchmarkDir}/${ctx:benchmarkName}-%d{yyyy-MM-dd-HH}.log">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${ctx:benchmarkName} is redudant, since benchmarkDir is alredy uniquily defines name of the test. Instead of ${ctx:benchmarkName} just put benchamarks .

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz move this file out of api to examples module and call it log4j2-example.xml. Also we have to put some documentation about this logging approach and share it on wiki page.

@artem-v artem-v merged commit 98ace83 into develop Jul 20, 2018
@artem-v artem-v deleted the feature/improve-logging branch July 20, 2018 13:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready for review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants