Permalink
Browse files

Adding information about addition, removing notice about download sin…

…ce there is none...
  • Loading branch information...
1 parent 6812652 commit abb7fdb082f5d14a6f4ecfde94a8269e42cceda6 @ssundell committed Jun 6, 2011
Showing with 4 additions and 6 deletions.
  1. +4 −6 README.md
View
@@ -6,8 +6,6 @@ It's very simple GELF implementation in pure Java with the log4j appender. It su
How to use GELFJ
----------------
-Grab latest JAR from the [downloads section](https://github.com/t0xa/gelfj/downloads) and drop it into your classpath.
-
Examples
--------
@@ -40,9 +38,7 @@ To use GELF Facility as appender in Log4J (XML format):
<param name="originHost" value="my.machine.example.com"/>
<param name="facility" value="gelf-java"/>
<param name="Threshold" value="INFO"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d |%t|%c{2}| %-5p - %m%n"/>
- </layout>
+ <param name="addExtendedInformation" value="true"/>
</appender>
and then add it as a one of appenders:
@@ -65,6 +61,8 @@ Or, in the log4j.properties format:
# Send all INFO logs to graylog2
log4j.rootLogger=INFO, graylog2
+Flag "addExtendedInformation" adds log4j specific information such as logger name and NDC into separate fields in GELF message.
+
What is GELF
------------
@@ -75,4 +73,4 @@ The Graylog Extended Log Format (GELF) avoids the shortcomings of classic plain
- Not much space for payloads like backtraces
- Unstructured. You can only build a long message string and define priority, severity etc.
-You can get more information here: [http://www.graylog2.org/about/gelf](http://www.graylog2.org/about/gelf)
+You can get more information here: [http://www.graylog2.org/about/gelf](http://www.graylog2.org/about/gelf)

0 comments on commit abb7fdb

Please sign in to comment.