Skip to content
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

Added three configuration properties to SyslogAppender #238

Conversation

adamcin
Copy link
Contributor

@adamcin adamcin commented Jun 13, 2014

Added three configuration properties to SyslogAppender: facility, stacktrace.pattern, and throwable.excluded. These provide more flexibility for segregation of log output for different audiences and systems, such as for creating audit-only logs, structured logs, and logs intended for debugging application errors.

…ck.trace.pattern, and throwable.excluded. These provide more flexibility for segregation of log output for different audiences and systems, such as for creating audit-only logs, structured logs, and logs intended for debugging application errors.
@@ -37,7 +34,7 @@

@Component(metatype = true, configurationFactory = true, policy = ConfigurationPolicy.REQUIRE,
label = "ACS AEM Commons - Syslog Appender",
description = "Logback appender to send messages using Syslog")
description = "Logback appender to send messages using Syslog. When testing this configuration, you should verify that the remote syslog daemon accepts requests from an external source. Experience shows that, by default, syslog daemons usually deny requests coming via a network connection.")
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably go in the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. I put it there because it was something I specifically ran into when trying to get syslog setup on my mac and only found it at the end of the Logback documentation on the SyslogAppender. I wish it was front-and-center when I started down this path, so I just stuck it right there on the Felix config panel for anyone else like me who regularly fails to RTFM.

How would I go about making changes to the docs? Should I just make pull requests for the gh-pages-1.6 branch? If so, I'll remove that statement from the metatype description and move it to the Syslog Appender page.

description = "The Syslog Facility is meant to identify the source of a message, separately from any context included in the Suffix Pattern. The facility option must be set to one of the strings KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, LPR, NEWS, UUCP, CRON, AUTHPRIV, FTP, NTP, AUDIT, ALERT, CLOCK, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. Case is not important.")
private static final String PROP_FACILITY = "facility";

@Property(label = "Stack Trace Pattern", description = "Logback Pattern for customizing the string appearing just before each stack trace line. The default value for this property is a single tab character.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just noticed this - the description says that the default is a single tab character, but it looks like the default is an empty string.

Copy link
Contributor

Choose a reason for hiding this comment

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

nevermind; I get it now, this default is in Logback.

@justinedelson justinedelson added this to the 1.7.0 milestone Jun 16, 2014
@justinedelson justinedelson merged commit 69cf8cd into Adobe-Consulting-Services:master Jun 16, 2014
@justinedelson
Copy link
Contributor

merged with minor formatting changes. Thanks!!!

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.

None yet

2 participants