{"id":6635,"date":"2013-01-08T13:00:10","date_gmt":"2013-01-08T11:00:10","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=6635"},"modified":"2013-01-07T22:50:02","modified_gmt":"2013-01-07T20:50:02","slug":"slf4j-logging-in-eclipse-plugins","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html","title":{"rendered":"SLF4J Logging in Eclipse Plugins"},"content":{"rendered":"<p>Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse plugin. But it looks like in the imaginary of an Eclipse developer everything is always inside the Eclipse environment and nothing is outside the Eclipse universe.<\/p>\n<p>If you search for the above headline using Google, one of the first articles you\u2019ll find is one about the \u201cplatform logging facility\u201d. But what about 3rd libraries? They cannot use an Eclipse-based logging framework.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\nIn my libraries I use the SLF4J API and leave it up to the user to decide what logging implementation (Log4J, Logback, JDK) he or she wants to use. And that\u2019s exactly what I want to do in Eclipse. It was hard to figure out exactly how to do it, but here are the pieces of that puzzle.<\/p>\n<h2>Phase 1: Development<\/h2>\n<p>This describes the steps during the development phase of your custom plugin.<\/p>\n<h4>Step 1: Get your libaries into a P2 repository<\/h4>\n<p>Everything you want to use in Eclipse has to be installed from a P2 repository. But most of the libaries I use are in a Maven repository. As far as I know there is no such thing as a main P2 repository similar to the \u201cMaven Central,\u201d and all libraries I found in P2 repositories were pretty old. So you have to create one by yourself.<\/p>\n<p>Luckily there is a Maven plugin called <a title=\"p2-maven-plugin\" href=\"http:\/\/projects.reficio.org\/p2-maven-plugin\/\">p2-maven-plugin<\/a> that converts all your Maven JARs into a single P2 repository. You can upload the plugin to a folder of your website or simply install it from your local hard drive.<\/p>\n<p>For this example you\u2019ll need the following libraries:<\/p>\n<ul>\n<li>org.slf4j:slf4j-api:1.6.6<\/li>\n<li>org.slf4j:slf4j-log4j12:1.6.6<\/li>\n<li>log4j:log4j:1.2.17<\/li>\n<li>org.ops4j.pax.logging:pax-logging-api:1.7.0<\/li>\n<li>org.ops4j.pax.logging:pax-logging-service:1.7.0<\/li>\n<li>org.ops4j.pax.confman:pax-confman-propsloader:0.2.2<\/li>\n<\/ul>\n<p>Format \u201cgroupId:artifactid:version\u201d is as used for the \u201cp2-maven-plugin.\u201d To skip this step you could also use <a title=\"fuin.org P2 repository\" href=\"http:\/\/www.fuin.org\/p2-repository\/\">http:\/\/www.fuin.org\/p2-repository\/<\/a>.<\/p>\n<h4>Step 2: Install the SLF4J API in the Eclipse IDE<\/h4>\n<ol>\n<li>Select \u201cHelp \/ Install New Software\u2026\u201d.<br \/>\n<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-1-eclipse-help-install.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-1-eclipse-help-install.jpg?w=136&amp;h=150\" alt=\"Eclipse \/ Help \/ Install\" width=\"136\" height=\"150\" \/><\/a><\/li>\n<li>Add the P2 repository URL and install the \u201cslf4j-api\u201d\u2014you could directly use the folder from Step 1 with a file URL like this: \u201cfile:\/pathtoyour\/p2-repository\/\u201d.<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-2-install-slf4j-api.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-2-install-slf4j-api.jpg?w=150&amp;h=63\" alt=\"Instal Slf4J API\" width=\"150\" height=\"63\" \/><\/a><\/li>\n<li>Add the freshly installed \u201cslf4j.api\u201d to your MANIFEST.MF.<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-3-manifest-required-plugins.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-3-manifest-required-plugins.jpg?w=150&amp;h=70\" alt=\"Dependencies in MANIFEST.MF\" width=\"150\" height=\"70\" \/><\/a><\/li>\n<li>Start using SLF4J logs in your code as usual.<\/li>\n<\/ol>\n<h2>Phase 2: Production<\/h2>\n<p>This describes the tasks a user of your custom plugin has to complete to start logging with Log4J. The following assumes that your custom plugin is already installed.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h4>Step 1: Install the log libraries in the Eclipse IDE<\/h4>\n<ol>\n<li>Select \u201cHelp \/ Install New Software\u2026\u201d.<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-1-eclipse-help-install.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-1-step-1-eclipse-help-install.jpg?w=136&amp;h=150\" alt=\"Eclipse \/ Help \/ Install\" width=\"136\" height=\"150\" \/><\/a><\/li>\n<li>Install the \u201cEquinox Target Components\u201d from the Eclipse Update Site.<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-2-install-equinox-target-components.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-2-install-equinox-target-components.jpg?w=150&amp;h=67\" alt=\"Install Equinox Target Components\" width=\"150\" height=\"67\" \/><\/a><\/li>\n<li>Add the P2 repository URL and install the following plugins:\n<ul>\n<li>Apache Log4j<\/li>\n<li>OPS4J Pax ConfMan\u2013Properties Loader<\/li>\n<li>OPS4J Pax Logging\u2013API<\/li>\n<li>OPS4J Pax Logging\u2013Service<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-3-install-log-libs.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-3-install-log-libs.jpg?w=150&amp;h=76\" alt=\"Install Log Libs\" width=\"150\" height=\"76\" \/><\/a><\/p>\n<\/li>\n<\/ol>\n<h4>Step 2: Configure PAX Logging<\/h4>\n<ol>\n<li>Set the location for your log configuration in the \u201ceclipse.ini\u201d as \u201cvmarg<code>'\n<pre class=\"brush:bash\">\r\n-vmargs\r\n-Xms40m\r\n-Xmx512m\r\n-Dbundles.configuration.location=<em>&lt;config-dir&gt;<\/em>\r\n<\/pre>\n<p><\/code><\/li>\n<li>Create a folder named \u201cservices\u201d in the above \u201cconfig-dir.\u201d<\/li>\n<li>Create Log4J properties named \u201corg.ops4j.pax.logging.properties\u201d in \u201cservices.\u201d<br \/>\n<code><\/p>\n<pre class=\"brush:bash\">log4j.rootLogger=INFO, FILE\r\nlog4j.appender.FILE=org.apache.log4j.FileAppender\r\nlog4j.appender.FILE.File=<em>&lt;path-to-your-log&gt;<\/em>\/example.log\r\nlog4j.appender.FILE.layout=org.apache.log4j.PatternLayout\r\nlog4j.appender.FILE.layout.ConversionPattern=%d{yyyy\/MM\/dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n\r\nlog4j.logger.your.package=DEBUG<\/pre>\n<p><\/code><\/li>\n<\/ol>\n<h4>Step 3: Activate PAX Logging<\/h4>\n<ol>\n<li>Open the \u201cConsole\u201d view.<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-4-show-view-console.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-4-show-view-console.jpg?w=150&amp;h=63\" alt=\"Show Console View\" width=\"150\" height=\"63\" \/><\/a><\/li>\n<li>Select the \u201cHost OSGI Console.\u201d<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-5-select-osgi-console.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-5-select-osgi-console.jpg?w=150&amp;h=50\" alt=\"Select OSGI Console\" width=\"150\" height=\"50\" \/><\/a><\/li>\n<li>Start the following bundles:\n<pre class=\"brush:bash\">start org.eclipse.equinox.cm\r\nstart org.ops4j.pax.logging.pax-logging-api\r\nstart org.ops4j.pax.logging.pax-logging-service\r\nstart org.ops4j.pax.configmanager\r\n<\/pre>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-6-start-bundle.jpg\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/01\/phase-2-step-6-start-bundle.jpg?w=150&amp;h=33\" alt=\"Start logging bundles\" width=\"150\" height=\"33\" \/><\/a><\/li>\n<\/ol>\n<p>Now you should be able to see your log statements in the configured \u201cexample.log\u201d file.<\/p>\n<h4>Step 4: Changing the configuration<\/h4>\n<p>If you want to change the configuration in the \u201corg.ops4j.pax.logging.properties\u201d, simply restart the PAX Configmanager in the OSGI console:<\/p>\n<pre class=\"brush:bash\">\r\nstop org.ops4j.pax.configmanager\r\nstart org.ops4j.pax.configmanager\r\n<\/pre>\n<p>Happy Logging!<br \/>\n&nbsp;<\/p>\n<p><strong><em>Reference: <\/em><\/strong><a href=\"http:\/\/javadeveloperslife.wordpress.com\/\">SLF4J Logging in Eclipse Plugins<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Michael Schnell at the <a href=\"http:\/\/javadeveloperslife.wordpress.com\/\">A Java Developer\u2019s Life<\/a> blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse plugin. But it looks like in the imaginary of an Eclipse developer everything is always inside the Eclipse environment and nothing is outside the Eclipse universe. If &hellip;<\/p>\n","protected":false},"author":279,"featured_media":233,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[68,29,451],"class_list":["post-6635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-apache-maven","tag-eclipse","tag-slf4j"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SLF4J Logging in Eclipse Plugins<\/title>\n<meta name=\"description\" content=\"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SLF4J Logging in Eclipse Plugins\" \/>\n<meta property=\"og:description\" content=\"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-08T11:00:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Schnell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Schnell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html\"},\"author\":{\"name\":\"Michael Schnell\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/bd5253c9a775576f35122861e01e8acc\"},\"headline\":\"SLF4J Logging in Eclipse Plugins\",\"datePublished\":\"2013-01-08T11:00:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html\"},\"wordCount\":628,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/slf4j-logo.jpg\",\"keywords\":[\"Apache Maven\",\"Eclipse\",\"slf4j\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html\",\"name\":\"SLF4J Logging in Eclipse Plugins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/slf4j-logo.jpg\",\"datePublished\":\"2013-01-08T11:00:10+00:00\",\"description\":\"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/slf4j-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/slf4j-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/slf4j-logging-in-eclipse-plugins.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SLF4J Logging in Eclipse Plugins\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/bd5253c9a775576f35122861e01e8acc\",\"name\":\"Michael Schnell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g\",\"caption\":\"Michael Schnell\"},\"sameAs\":[\"http:\\\/\\\/javadeveloperslife.wordpress.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Michael-Schnell\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SLF4J Logging in Eclipse Plugins","description":"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html","og_locale":"en_US","og_type":"article","og_title":"SLF4J Logging in Eclipse Plugins","og_description":"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse","og_url":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-01-08T11:00:10+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg","type":"image\/jpeg"}],"author":"Michael Schnell","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Michael Schnell","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html"},"author":{"name":"Michael Schnell","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/bd5253c9a775576f35122861e01e8acc"},"headline":"SLF4J Logging in Eclipse Plugins","datePublished":"2013-01-08T11:00:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html"},"wordCount":628,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg","keywords":["Apache Maven","Eclipse","slf4j"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html","url":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html","name":"SLF4J Logging in Eclipse Plugins","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg","datePublished":"2013-01-08T11:00:10+00:00","description":"Developing with Maven and pure Java libraries all the time, I never thought it could be a problem to issue a few log statements when developing an Eclipse","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/slf4j-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/slf4j-logging-in-eclipse-plugins.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"SLF4J Logging in Eclipse Plugins"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/bd5253c9a775576f35122861e01e8acc","name":"Michael Schnell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4851abdcd0a6d64a783e02e20174a27f64c64c1ac9747a2e563d8112451d29d6?s=96&d=mm&r=g","caption":"Michael Schnell"},"sameAs":["http:\/\/javadeveloperslife.wordpress.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Michael-Schnell"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/6635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=6635"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/6635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/233"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=6635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=6635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=6635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}