<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jay L</title>
    <description>The latest articles on DEV Community by Jay L (@jay_l_d9070976d2f2c99d5ee).</description>
    <link>https://dev.to/jay_l_d9070976d2f2c99d5ee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2987588%2Fa23c91d7-2ed7-4257-adcd-751b25013257.jpg</url>
      <title>DEV Community: Jay L</title>
      <link>https://dev.to/jay_l_d9070976d2f2c99d5ee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jay_l_d9070976d2f2c99d5ee"/>
    <language>en</language>
    <item>
      <title>Eclipse Code Template</title>
      <dc:creator>Jay L</dc:creator>
      <pubDate>Sat, 29 Mar 2025 00:29:04 +0000</pubDate>
      <link>https://dev.to/jay_l_d9070976d2f2c99d5ee/eclipse-code-template-48f9</link>
      <guid>https://dev.to/jay_l_d9070976d2f2c99d5ee/eclipse-code-template-48f9</guid>
      <description>&lt;p&gt;Eclipse's Java editor allows you to define code templates. You can use them to code complete things that you type all the time, such as get logger, logger.debug, etc.&lt;/p&gt;

&lt;p&gt;Go to Windows-&amp;gt;Preferences-&amp;gt;Java-&amp;gt;Editor-&amp;gt;Templates , and put in the following templates&lt;/p&gt;

&lt;p&gt;name:getlog&lt;/p&gt;

&lt;p&gt;&lt;code&gt;private static final Log logger = LogFactory.getLog( ${enclosing_type}.class );&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;name:debug&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if (logger.isDebugEnabled()) {&lt;br&gt;
logger.debug(${Message}, ${exception});&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;name:error&lt;/p&gt;

&lt;p&gt;&lt;code&gt;logger.error(${Message}, ${exception});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;name:info&lt;/p&gt;

&lt;p&gt;&lt;code&gt;logger.info(${Message}, ${exception});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;name:warn&lt;/p&gt;

&lt;p&gt;&lt;code&gt;logger.warn(${Message}, ${exception});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;name:const&lt;/p&gt;

&lt;p&gt;&lt;code&gt;private static final ${type} ${name} = new ${type} ${cursor};&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After you have these templates setup, type the first few characters of the template name and hit ctrl-space, the editor will code complete the template. For example, type getlog, ctrl-space, and enter will declare a logger variable named logger&lt;/p&gt;

</description>
      <category>eclipse</category>
      <category>java</category>
    </item>
  </channel>
</rss>
