code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public void setAdditionalFields(String spec) {
ConfigurationSupport.setAdditionalFields(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | setAdditionalFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public void setAdditionalFieldTypes(String spec) {
ConfigurationSupport.setAdditionalFieldTypes(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | setAdditionalFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getOriginHost() {
return gelfMessageAssembler.getOriginHost();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getOriginHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getFacility() {
return gelfMessageAssembler.getFacility();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getFacility | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getExtractStackTrace() {
return gelfMessageAssembler.getExtractStackTrace();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getExtractStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public boolean isFilterStackTrace() {
return gelfMessageAssembler.isFilterStackTrace();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | isFilterStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public boolean isIncludeLogMessageParameters() {
return gelfMessageAssembler.isIncludeLogMessageParameters();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | isIncludeLogMessageParameters | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public boolean isIncludeLocation() {
return gelfMessageAssembler.isIncludeLocation();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | isIncludeLocation | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getTimestampPattern() {
return gelfMessageAssembler.getTimestampPattern();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getTimestampPattern | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getVersion() {
return gelfMessageAssembler.getVersion();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getVersion | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public String getLineBreak() {
return lineBreak;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | getLineBreak | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
public void setLineBreak(String lineBreak) {
this.lineBreak = lineBreak;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDefaults",
"level": "6",
... | setLineBreak | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfFormatter.java | MIT |
protected void initializeDefaultFields() {
gelfMessageAssembler.addFields(LogMessageField.getDefaultMapping(Time, Severity, ThreadName, SourceClassName,
SourceMethodName, SourceSimpleClassName, LoggerName));
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | initializeDefaultFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
protected GelfMessageAssembler createGelfMessageAssembler() {
return new GelfMessageAssembler();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | createGelfMessageAssembler | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
@Override
public void flush() {
// nothing to do
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | flush | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
@Override
public void publish(final LogRecord record) {
if (!isLoggable(record)) {
return;
}
try {
if (null == gelfSender) {
synchronized (this) {
if (null == gelfSender) {
gelfSender = createGelfSender();
... | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | publish | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
protected GelfSender createGelfSender() {
return GelfSenderFactory.createSender(gelfMessageAssembler, errorReporter, Collections.<String, Object>emptyMap());
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | createGelfSender | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
@Override
public void reportError(String message, Exception e) {
reportError(message, e, ErrorManager.GENERIC_FAILURE);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | reportError | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
@Override
public void close() {
if (null != gelfSender) {
Closer.close(gelfSender);
gelfSender = null;
}
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | close | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
protected GelfMessage createGelfMessage(final LogRecord record) {
return gelfMessageAssembler.createGelfMessage(new JulLogEvent(record));
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | createGelfMessage | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public void setAdditionalFields(String spec) {
ConfigurationSupport.setAdditionalFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setAdditionalFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public void setAdditionalFieldTypes(String spec) {
ConfigurationSupport.setAdditionalFieldTypes(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setAdditionalFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public void setMdcFields(String spec) {
ConfigurationSupport.setMdcFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public void setDynamicMdcFields(String spec) {
ConfigurationSupport.setDynamicMdcFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setDynamicMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public void setDynamicMdcFieldTypes(String spec) {
ConfigurationSupport.setDynamicMdcFieldTypes(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setDynamicMdcFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getGraylogHost() {
return gelfMessageAssembler.getHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getGraylogHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getOriginHost() {
return gelfMessageAssembler.getOriginHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getOriginHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getHost() {
return gelfMessageAssembler.getHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public int getPort() {
return gelfMessageAssembler.getPort();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getPort | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public int getGraylogPort() {
return gelfMessageAssembler.getPort();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getGraylogPort | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getFacility() {
return gelfMessageAssembler.getFacility();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getFacility | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getExtractStackTrace() {
return gelfMessageAssembler.getExtractStackTrace();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getExtractStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public boolean isFilterStackTrace() {
return gelfMessageAssembler.isFilterStackTrace();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isFilterStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public boolean isIncludeLogMessageParameters() {
return gelfMessageAssembler.isIncludeLogMessageParameters();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isIncludeLogMessageParameters | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public boolean isIncludeLocation() {
return gelfMessageAssembler.isIncludeLocation();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isIncludeLocation | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getTimestampPattern() {
return gelfMessageAssembler.getTimestampPattern();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getTimestampPattern | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public int getMaximumMessageSize() {
return gelfMessageAssembler.getMaximumMessageSize();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getMaximumMessageSize | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
public String getVersion() {
return gelfMessageAssembler.getVersion();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getVersion | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/jul/GelfLogHandler.java | MIT |
@Override
public String format(LoggingEvent loggingEvent) {
if (!wasSetFieldsCalled) {
addFields(SUPPORTED_FIELDS);
}
GelfMessage gelfMessage = gelfMessageAssembler.createGelfMessage(new Log4jLogEvent(loggingEvent));
return gelfMessage.toJson("") + lineBreak;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | format | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
@Override
public boolean ignoresThrowable() {
return false;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | ignoresThrowable | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
@Override
public void activateOptions() {
// nothing to do
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | activateOptions | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setFields(String fieldSpec) {
String[] properties = fieldSpec.split(MULTI_VALUE_DELIMITTER);
List<LogMessageField.NamedLogField> fields = new ArrayList<>();
for (String field : properties) {
LogMessageField.NamedLogField namedLogField = LogMessageField.NamedLogField.byN... | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
private void addFields(Collection<LogMessageField.NamedLogField> fields) {
gelfMessageAssembler.addFields(LogMessageField.getDefaultMapping(fields
.toArray(new LogMessageField.NamedLogField[fields.size()])));
wasSetFieldsCalled = true;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | addFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setAdditionalFields(String spec) {
ConfigurationSupport.setAdditionalFields(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setAdditionalFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setAdditionalFieldTypes(String spec) {
ConfigurationSupport.setAdditionalFieldTypes(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setAdditionalFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setMdcFields(String spec) {
ConfigurationSupport.setMdcFields(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setDynamicMdcFields(String spec) {
ConfigurationSupport.setDynamicMdcFields(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setDynamicMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setDynamicMdcFieldTypes(String spec) {
ConfigurationSupport.setDynamicMdcFieldTypes(spec, gelfMessageAssembler);
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setDynamicMdcFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public boolean isMdcProfiling() {
return gelfMessageAssembler.isMdcProfiling();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | isMdcProfiling | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public boolean isIncludeFullMdc() {
return gelfMessageAssembler.isIncludeFullMdc();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | isIncludeFullMdc | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getOriginHost() {
return gelfMessageAssembler.getOriginHost();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getOriginHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getFacility() {
return gelfMessageAssembler.getFacility();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getFacility | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getExtractStackTrace() {
return gelfMessageAssembler.getExtractStackTrace();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getExtractStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public boolean isFilterStackTrace() {
return gelfMessageAssembler.isFilterStackTrace();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | isFilterStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public boolean isIncludeLocation() {
return gelfMessageAssembler.isIncludeLocation();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | isIncludeLocation | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getTimestampPattern() {
return gelfMessageAssembler.getTimestampPattern();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getTimestampPattern | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getVersion() {
return gelfMessageAssembler.getVersion();
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getVersion | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public String getLineBreak() {
return lineBreak;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | getLineBreak | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
public void setLineBreak(String lineBreak) {
this.lineBreak = lineBreak;
} | Log-Formatter for JSON using fields specified within GELF. This formatter will produce a JSON object for each log event.
Example:
<code>
{
"NDC": "ndc message",
"timestamp": "1439319236.722",
"SourceClassName": "biz.paluch.logging.gelf.wildfly.WildFlyGelfLogFormatterTest",
"SourceMethodName": "testDef... | setLineBreak | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLayout.java | MIT |
@Override
protected void append(LoggingEvent event) {
if (event == null) {
return;
}
try {
GelfMessage message = createGelfMessage(event);
if (!message.isValid()) {
reportError("GELF Message is invalid: " + message.toJson(), null);
... | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | append | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
protected GelfSender createGelfSender() {
return GelfSenderFactory.createSender(gelfMessageAssembler, errorReporter, Collections.<String, Object>emptyMap());
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | createGelfSender | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
@Override
public void reportError(String message, Exception exception) {
errorHandler.error(message, exception, 0);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | reportError | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
@Override
public boolean requiresLayout() {
return false;
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | requiresLayout | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
@Override
public void activateOptions() {
if (null == gelfSender) {
gelfSender = createGelfSender();
}
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | activateOptions | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
@Override
public void close() {
if (null != gelfSender) {
Closer.close(gelfSender);
gelfSender = null;
}
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | close | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
protected GelfMessage createGelfMessage(final LoggingEvent loggingEvent) {
return gelfMessageAssembler.createGelfMessage(new Log4jLogEvent(loggingEvent));
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | createGelfMessage | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public void setAdditionalFields(String spec) {
ConfigurationSupport.setAdditionalFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setAdditionalFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public void setAdditionalFieldTypes(String spec) {
ConfigurationSupport.setAdditionalFieldTypes(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setAdditionalFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public void setMdcFields(String spec) {
ConfigurationSupport.setMdcFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public void setDynamicMdcFields(String spec) {
ConfigurationSupport.setDynamicMdcFields(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setDynamicMdcFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public void setDynamicMdcFieldTypes(String spec) {
ConfigurationSupport.setDynamicMdcFieldTypes(spec, gelfMessageAssembler);
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | setDynamicMdcFieldTypes | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getGraylogHost() {
return gelfMessageAssembler.getHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getGraylogHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public int getGraylogPort() {
return gelfMessageAssembler.getPort();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getGraylogPort | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getHost() {
return gelfMessageAssembler.getHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public int getPort() {
return gelfMessageAssembler.getPort();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getPort | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getOriginHost() {
return gelfMessageAssembler.getOriginHost();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getOriginHost | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getFacility() {
return gelfMessageAssembler.getFacility();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getFacility | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getExtractStackTrace() {
return gelfMessageAssembler.getExtractStackTrace();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getExtractStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public boolean isFilterStackTrace() {
return gelfMessageAssembler.isFilterStackTrace();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isFilterStackTrace | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public boolean isIncludeLocation() {
return gelfMessageAssembler.isIncludeLocation();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isIncludeLocation | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public boolean isMdcProfiling() {
return gelfMessageAssembler.isMdcProfiling();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isMdcProfiling | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getTimestampPattern() {
return gelfMessageAssembler.getTimestampPattern();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getTimestampPattern | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public int getMaximumMessageSize() {
return gelfMessageAssembler.getMaximumMessageSize();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getMaximumMessageSize | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public boolean isIncludeFullMdc() {
return gelfMessageAssembler.isIncludeFullMdc();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | isIncludeFullMdc | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public String getVersion() {
return gelfMessageAssembler.getVersion();
} | Logging-Handler for GELF (Graylog Extended Logging Format). This Java-Util-Logging Handler creates GELF Messages and posts
them using UDP (default) or TCP. Following parameters are supported/needed:
<ul>
<li>host (Mandatory): Hostname/IP-Address of the Logstash Host
<ul>
<li>(the host) for UDP, e.g. 127.0.0.1 or some.h... | getVersion | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j/GelfLogAppender.java | MIT |
public Pattern getPattern() {
return pattern;
} | Configuration for dynamic log fields pulled from MDC.
@author Thomas Herzog | getPattern | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | MIT |
public String getType() {
return type;
} | Configuration for dynamic log fields pulled from MDC.
@author Thomas Herzog | getType | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | MIT |
@PluginFactory
public static GelfDynamicMdcFieldType createField(@PluginAttribute("regex") String regex,
@PluginAttribute("type") String type) {
if (Strings.isEmpty(regex)) {
throw new IllegalArgumentException("Regex is empty");
}
if (Strings.isEmpty(type)) {
... | Configuration for dynamic log fields pulled from MDC.
@author Thomas Herzog | createField | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcFieldType.java | MIT |
public String getRegex() {
return regex;
} | Configuration for dynamic log fields pulled from MDC.
@author Mark Paluch | getRegex | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcLogFields.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcLogFields.java | MIT |
@PluginFactory
public static GelfDynamicMdcLogFields createField(@PluginConfiguration final Configuration config,
@PluginAttribute("regex") String regex) {
if (Strings.isEmpty(regex)) {
LOGGER.error("The regex is empty");
return null;
}
return new GelfDy... | Configuration for dynamic log fields pulled from MDC.
@author Mark Paluch | createField | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcLogFields.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfDynamicMdcLogFields.java | MIT |
private static void configureFields(MdcGelfMessageAssembler mdcGelfMessageAssembler, GelfLogField[] fields,
GelfDynamicMdcLogFields[] dynamicFieldArray) {
if (fields == null || fields.length == 0) {
mdcGelfMessageAssembler.addFields(LogMessageField.getDefaultMapping(Time, Severity, Thre... | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | configureFields | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
@Override
public void append(LogEvent event) {
if (event == null) {
return;
}
try {
GelfMessage message = createGelfMessage(event);
if (!message.isValid()) {
reportError("GELF Message is invalid: " + message.toJson(), null);
... | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | append | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
protected GelfMessage createGelfMessage(final LogEvent logEvent) {
return gelfMessageAssembler.createGelfMessage(new Log4j2LogEvent(logEvent));
} | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | createGelfMessage | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
public void reportError(String message, Exception exception) {
errorReporter.reportError(message, exception);
} | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | reportError | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
@Override
protected boolean stop(long timeout, TimeUnit timeUnit, boolean changeLifeCycleState) {
if (null != gelfSender) {
Closer.close(gelfSender);
gelfSender = null;
}
return super.stop(timeout, timeUnit, changeLifeCycleState);
} | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | stop | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
@Override
public void start() {
if (null == gelfSender) {
gelfSender = createGelfSender();
}
super.start();
} | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | start | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
protected GelfSender createGelfSender() {
return GelfSenderFactory.createSender(gelfMessageAssembler, errorReporter, Collections.<String, Object>emptyMap());
} | Configure fields (literals, MDC, layout).
@param mdcGelfMessageAssembler the assembler
@param fields static field array
@param dynamicFieldArray dynamic field array | createGelfSender | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogAppender.java | MIT |
public String getName() {
return name;
} | Configuration for a log field.
@author Mark Paluch | getName | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | MIT |
public String getLiteral() {
return literal;
} | Configuration for a log field.
@author Mark Paluch | getLiteral | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | MIT |
public String getMdc() {
return mdc;
} | Configuration for a log field.
@author Mark Paluch | getMdc | java | mp911de/logstash-gelf | src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | https://github.com/mp911de/logstash-gelf/blob/master/src/main/java/biz/paluch/logging/gelf/log4j2/GelfLogField.java | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.