{"id":474,"date":"2003-08-14T20:40:45","date_gmt":"2003-08-15T00:40:45","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=474"},"modified":"2003-08-14T20:40:45","modified_gmt":"2003-08-15T00:40:45","slug":"instant-logging-harness-the-power-of-log4j-with-jabber","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/08\/14\/instant-logging-harness-the-power-of-log4j-with-jabber\/","title":{"rendered":"Instant logging: Harness the power of log4j with Jabber"},"content":{"rendered":"<p>IBM developerWorks has a <a href=\"http:\/\/www-106.ibm.com\/developerworks\/java\/library\/j-instlog\/\">great article<\/a> that talks about extending <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/index.html\">log4J<\/a> to with <a href=\"http:\/\/www.jabber.org\/\">Jabber<\/a>.  log4J comes with appenders for <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/api\/org\/apache\/log4j\/net\/SimpleSocketServer.html\">Sockets<\/a>, <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/api\/org\/apache\/log4j\/net\/JMSAppender.html\">JMS<\/a>, <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/api\/org\/apache\/log4j\/net\/SMTPAppender.html\">SMTP<\/a>, <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/api\/org\/apache\/log4j\/net\/TelnetAppender.html\">Telnet<\/a> and so on&#8230; This article discusses extending the <a href=\"http:\/\/jakarta.apache.org\/log4j\/docs\/api\/org\/apache\/log4j\/AppenderSkeleton.html\">AppenderSkeleton<\/a> class to provide logging to a Jabber server, which initially sounded crazy (why would you want to get IM&#8217;ed every time a log() message is fired in your application?), but makes great sense now that I think about it.  You can log to a group chat room (multiple people can be viewing the logs in real-time), Jabber clients are ubiquitious across operating system and device type, and Jabber provides resource awareness, which means that the logging messages will be routed to the best resource available.   <\/p>\n<p>The authors use <a href=\"http:\/\/www.jivesoftware.com\/xmpp\/smack\/\">Smack<\/a> by Jive Software for connectivity through Java.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IBM developerWorks has a great article that talks about extending log4J to with Jabber. log4J comes with appenders for Sockets, JMS, SMTP, Telnet and so on&#8230; This article discusses extending the AppenderSkeleton class to provide logging to a Jabber server, which initially sounded crazy (why would you want to get IM&#8217;ed every time a log() &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/08\/14\/instant-logging-harness-the-power-of-log4j-with-jabber\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Instant logging: Harness the power of log4j with Jabber<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/474"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}