• Teilen
  • E-Mail
  • Einbetten
  • Gefällt mir
  • Speichern
  • Privater Inhalt
World of Logging
 

World of Logging

on

  • 2,330 Views

A talk I gave at the ApacheCon EU 2012. I explained on the Apache Logging project - who are we, what are we doing and what might happen in the future. As log4j 2.0 were currently in beta state, I lost ...

A talk I gave at the ApacheCon EU 2012. I explained on the Apache Logging project - who are we, what are we doing and what might happen in the future. As log4j 2.0 were currently in beta state, I lost some words on it too.

Statistiken

Views

Gesamtviews
2,330
Views auf SlideShare
1,951
Views einbetten
379

Actions

Gefällt mir
3
Downloads
27
Kommentare
0

6 Einbettungen 379

http://www.grobmeier.de 362
http://www.bring-communication.com 9
http://localhost 4
http://newsblur.com 2
http://www.newsblur.com 1
http://grobmeier.de 1

Zugänglichkeit

Kategorien

Details hochladen

Uploaded via as Adobe PDF

Benutzerrechte

© Alle Rechte vorbehalten

Report content

Als unangemessen gemeldet Als unangemessen melden
Als unangemessen melden

Wählen Sie Ihren Grund, warum Sie diese Präsentation als unangemessen melden.

Löschen
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Ihre Nachricht erscheint hier
    Processing...
Kommentar posten
Kommentar bearbeiten

    World of Logging World of Logging Presentation Transcript

    • WORLD OF LOGGING
    • Christian Grobmeier @grobmeier http://www.grobmeier.de
    • Why should you log?
    • T H EBIGGESTCHALLENGESWE H AV Ea
    • SPEED!
    • Failsafe. Reliable.
    • Compability.
    • Taste.
    • Loggingwith DukeJava
    • Too muchtaste...m a k e sheadache! Think on: log4j, logback, JUL, TinyLog, AVSL
    • Pills:slf4j & Commons Logging
    • Which pill? slf4j log4j 1 logback JUL AVSL log4j 2 Commons Logging Don‘t forget PAX!
    • log4j 2.0 is thefuture of log4jIntegrates well with: slf4j log4j 1.x Commons Logging
    • What makeslog4j 2.0 better?
    • API++ Instead:if(logger.isDebugEnabled()) logger.info("Hi, " + u.getA() + “ “ + u.getB());
    • API++ Instead:if(logger.isDebugEnabled()) logger.info("Hi, " + u.getA() + “ “ + u.getB()); Write:logger.info("Hi, {} {} ", u.getA(), u.getB());
    • Better Filter Marker:Marker SQL_MARKER = MarkerManager.getMarker("SQL");logger.debug( SQL_MARKER, "SELECT * FROM {}", table);
    • Plugins@Plugin(name = "Sandbox", type = "Core", elementType = "appender")public class Mine extends AppenderBase { private Mine(String name, Filter f) { super(name, f, null); } public void append(LogEvent e) { … }
    • Plugins@PluginFactorypublic static Mine create( @PluginAttr("name") String n, @PluginElement("filters") Filter f) { return new Mine(n, f);}
    • Configuration<appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm} %msg%n"/> </Console></appenders>
    • Configuration{ "configuration": … "appenders": { "Console": { "name": "STDOUT", "PatternLayout": { "pattern": "%m%n" } }, ...
    • Configuration Reloading<configuration monitorInterval="30">...</configuration>
    • log4j 1.x 2314 logback 2116log4j 2.x 2386Disabled 5 SPEED!Logging Performance in ns
    • There is moresweetness
    • CHAINSAW
    • The story oflog4php2004 2007 2009 2010
    • What‘s with...log4netlog4cxx
    • The story oflog4php Community
    • Good times,bad times2000 2009 2010 2011
    • We need your HELPCurrently only4 regular codecontributors.
    • But weFIGHT!6 Releases~750 Commits~600 dev Mailsin 2012 only!
    • Seriously.Isn‘t logging justBORING?
    • Well... howdo you log onyour mobile/cloud apps?
    • With new innovation,new logging challenges come up. Logging needsinnovation too.Look at Apache Flume.
    • Upcoming at the Incubator Guice Components
    • Instead:Logger logger = Logger.getLogger( „test“);
    • Instead:Logger logger = Logger.getLogger( „test“); Write: @InjectLogger Logger logger;
    • Remember: Logging is mission critical. Don‘t go without.
    • We are hiring! use it! ask questions! spread the love! send patches!general@logging.apache.org
    • Thank you! Christian Grobmeier @grobmeier http://www.grobmeier.de Follow me, if you dare!
    • Image Credits Earth (Nasa) Vulcano (Flickr: Martin Barland) Tiger (Flickr: TeryKats) Gazelle (Flickr: fwooper)Golden Gate Bridge (Flickr: TimeLapseBlog.com) Pens (Flickr: JD | Photography) Wineglass (Flickr: Willia4) Headache (Flickr: Threephin) Pills (Dr. Michael Günther) Wheelgear (Flickr: ralphbijker) Grapes (Flickr: RVWithTito) Chainsaw (Flickr: Dave Hosford) Elephant (Flickr: Werner Vermaak) Haunted House (Flickr: barb_ar) SOS (Flickr: Daquella Manera) Bathtime muscles (Flickr: mollypop) Yawning Animal (Flickr: robef) Mobile (Flickr: twicepix) Clouds (Flickr: karindalziel) Fight (Flickr: KellBailey)