Skip to content

Conversation

@filip-nowak-atl
Copy link
Contributor

Jsonify both log4j 1 and log4j 2 config files

@filip-nowak-atl filip-nowak-atl requested a review from a team as a code owner October 18, 2022 10:44
@filip-nowak-atl filip-nowak-atl force-pushed the issue/JPERF-838-add-log4j2-jira-config-jsonification branch from aa0b017 to a4477a8 Compare October 18, 2022 14:04
dagguh
dagguh previously approved these changes Oct 19, 2022
private val log4jConfigFileName = log4j2ConfigFileName

override fun jsonifyLog4j(sshConnection: SshConnection, log4jPropertiesPath: String) {
val log4j2ConfigPath = Paths.get(log4jPropertiesPath).resolveSibling(log4jConfigFileName).toString()
Copy link
Contributor

Choose a reason for hiding this comment

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

resolveSibling nice!

@filip-nowak-atl filip-nowak-atl force-pushed the issue/JPERF-838-add-log4j2-jira-config-jsonification branch from dc0d4e5 to 18281ea Compare October 19, 2022 08:58
dagguh
dagguh previously approved these changes Oct 19, 2022
@filip-nowak-atl filip-nowak-atl force-pushed the issue/JPERF-838-add-log4j2-jira-config-jsonification branch from 18281ea to 4a22d7a Compare October 19, 2022 09:14
@filip-nowak-atl filip-nowak-atl force-pushed the issue/JPERF-838-add-log4j2-jira-config-jsonification branch from 4a22d7a to 6daf5cf Compare October 19, 2022 09:15
import com.atlassian.performance.tools.ssh.api.SshConnection
import java.nio.file.Paths

class Log4j2SplunkForwarder(log4j2ConfigFileName: String, splunkForwarder: SplunkForwarder) :
Copy link
Contributor

Choose a reason for hiding this comment

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

This is new API and it's a good thing. It's a way to offer the fix to anyone, who's not going through the JiraNodeConfig.Builder. @atlassian/jpt, this will be a minor release.

@filip-nowak-atl filip-nowak-atl merged commit 9cf8605 into atlassian:master Oct 19, 2022
@pczuj
Copy link
Contributor

pczuj commented Oct 19, 2022

FYI I wasn't convinced that this change wasn't breaking module's API so I checked with japicmp and the report confirmed that minor release if correct ✅

Can't attach the report, because github rejects HTML attachements + chrome for some reason crashes when taking full page screenshot ¯\_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants