Skip to content

Add Log4J 2 Logging Support#7

Closed
ThatJoeMoore wants to merge 2 commits intoaws:masterfrom
ThatJoeMoore:master
Closed

Add Log4J 2 Logging Support#7
ThatJoeMoore wants to merge 2 commits intoaws:masterfrom
ThatJoeMoore:master

Conversation

@ThatJoeMoore
Copy link
Copy Markdown

Note that I left out the call to LambdaRuntimeInternal.setUseLog4jAppender, as I don't know what effect that has and what consequences including it would have.

@williamblevins
Copy link
Copy Markdown

williamblevins commented Mar 8, 2017

I tried this and it worked as expected! I needed to make one small tweak with the default encoding. Much appreciated.

}

public void append(LogEvent event) {
logger.log(new String(getLayout().toByteArray(event)));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Recommend ensuring some sort of reasonable encoding here: UTF-8?

@ghost
Copy link
Copy Markdown

ghost commented Jun 19, 2017

Guys, let's merge this PR. We need log4j2!

@asuresh8
Copy link
Copy Markdown
Contributor

asuresh8 commented Jul 4, 2017

Added support in last commit

@asuresh8 asuresh8 closed this Jul 4, 2017
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