{"id":34443,"date":"2016-06-30T18:58:15","date_gmt":"2016-06-30T13:28:15","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=34443"},"modified":"2016-07-01T11:44:36","modified_gmt":"2016-07-01T06:14:36","slug":"setting-logback-in-jetty","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/","title":{"rendered":"Setting up Logback in Jetty-9.2.16"},"content":{"rendered":"<p>Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering.<\/p>\n<p><b>Why Logback?<\/b><\/p>\n<ol>\n<li>For automatically removing old logs.<\/li>\n<li>It also automatically compresses archived log files.<\/li>\n<li>Provides a wide array of filtering capabilities.<\/li>\n<li>Logback-access, i.e. HTTP-access logging with brains, is an integral part of Logback.<\/li>\n<\/ol>\n<p>Before using Logback, let&#8217;s understand what &#8220;<strong>SLF4J&#8221;<\/strong> is.<\/p>\n<p>SLF4J(Simple Logging Facade for Java) is used for logging systems allowing the end-user to plug-in the desired logging system at deployment time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-36852\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/lblogo.jpg\" alt=\"lblogo\" width=\"260\" height=\"140\" \/><\/p>\n<p><span style=\"text-decoration: underline\"><b>Logback<\/b><\/span> is the successor of log4j logger API, but Logback offers some advantages over log4j, like better performance and less memory consumption, automatic reloading of configuration files, or filter capabilities, to cite a few features.<br \/>\nLogback is divided into three modules <b>logback-core<\/b>,\u00a0<b>logback-classic<\/b> and <b>logback-access<\/b>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-36849\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/logback_arch.png\" alt=\"logback_arch\" width=\"336\" height=\"205\" \/><\/p>\n<p>Logback-classic implements the SLF4J API so that we can readily switch back and forth between Logback and other logging systems. The third module called logback-access integrates with Servlet containers to provide HTTP-access log functionality.<\/p>\n<p>The logback-core module forms the foundation upon which the other two modules are built. Interestingly enough, logback-core has no notion of \u201clogger\u201d. Logback-classic relies on logback-core for basic services. It natively implements the SLF4J API.<\/p>\n<p><b>Jetty<\/b> determines its logging behavior according to the following rules:<\/p>\n<ul>\n<ul>1.\u00a0What happens first is that the value of the property org.eclipse.jetty.util.log.class is checked. If it is already defined, the logger implements that class.<\/ul>\n<\/ul>\n<ul>2. If org.slf4j.Logger exists in the classpath,then \u00a0logging is done by SLF4J.<\/ul>\n<ul>3. If none of them exists, then default org.eclipse.jetty.util.log.StdErrLog logging behavior is executed.<\/ul>\n<p>The modules of Jetty are enabled or disabled by start.ini file under our JETTY_HOME directory.<\/p>\n<p>To activate logging module, certain changes had to be done as follows:<\/p>\n<ul>1. Go to the JETTY_HOME directory.<\/ul>\n<ul>2. Open start.ini file.<\/ul>\n<ul>3. Add the following line to start.ini and save it:<\/ul>\n<p>[js]<br \/>\n &#8211;module=logging<br \/>\n[\/js]<\/p>\n<p>To configure SLF4J with Logback, first we have to include following JAR files:<\/p>\n<ul>1. SLF4J API(http:\/\/central.maven.org\/maven2\/org\/slf4j\/slf4j-api\/1.6.6\/slf4j-api-1.6.6.jar)<\/ul>\n<ul>2. logback-core(http:\/\/central.maven.org\/maven2\/ch\/qos\/logback\/logback-core\/1.0.7\/logback-core-1.0.7.jar)<\/ul>\n<ul>3. logback classic(http:\/\/central.maven.org\/maven2\/ch\/qos\/logback\/logback-classic\/1.0.7\/logback-classic-1.0.7.jar)<\/ul>\n<p>After that, we have to follow below steps:<\/p>\n<ul>1. Create the directory logging under JETTY_HOME.<\/ul>\n<p>[js]<br \/>\nmkdir ${jetty.home}\/lib\/logging<br \/>\n[\/js]<\/p>\n<ul>2. Copy 3 JAR files which we downloaded from above steps to this directory (JETTY_HOME\/logging)<\/ul>\n<p>After adding the files to our classpath, we should (although not mandatory) add a logback.xml file to the directory JETTY_HOME\/resources.<br \/>\nInside ${jetty.home}\/resources\/logback.xml<\/p>\n<p>[js]&lt;?xml version=&quot;1.0&quot;?&gt;<br \/>\n&lt;configuration&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;appender name=&quot;ERROR-FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br \/>\n        &lt;file&gt;log\/error_logfile.log&lt;\/file&gt;<br \/>\n        &lt;filter class=&quot;ch.qos.logback.classic.filter.LevelFilter&quot;&gt;<br \/>\n                &lt;level&gt;ERROR&lt;\/level&gt;<br \/>\n                &lt;onMatch&gt;ACCEPT&lt;\/onMatch&gt;<br \/>\n                &lt;onMismatch&gt;DENY&lt;\/onMismatch&gt;<br \/>\n        &lt;\/filter&gt;<br \/>\n\t &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;<br \/>\n                &lt;fileNamePattern&gt;log\/zipped\/error.%i.log.zip&lt;\/fileNamePattern&gt;<br \/>\n                &lt;minIndex&gt;1&lt;\/minIndex&gt;<br \/>\n                &lt;maxIndex&gt;60&lt;\/maxIndex&gt;<br \/>\n        &lt;\/rollingPolicy&gt;<\/p>\n<p>        &lt;triggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;<br \/>\n                &lt;maxFileSize&gt;100MB&lt;\/maxFileSize&gt;<br \/>\n        &lt;\/triggeringPolicy&gt;<br \/>\n        &lt;append&gt;true&lt;\/append&gt;<br \/>\n        &lt;encoder&gt;<br \/>\n            &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} &#8211; %msg %n&lt;\/pattern&gt;<br \/>\n        &lt;\/encoder&gt;<br \/>\n    &lt;\/appender&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;appender name=&quot;WARN-FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br \/>\n        &lt;file&gt;log\/warn_logfile.log&lt;\/file&gt;<br \/>\n        &lt;filter class=&quot;ch.qos.logback.classic.filter.LevelFilter&quot;&gt;<br \/>\n                &lt;level&gt;WARN&lt;\/level&gt;<br \/>\n                &lt;onMatch&gt;ACCEPT&lt;\/onMatch&gt;<br \/>\n                &lt;onMismatch&gt;DENY&lt;\/onMismatch&gt;<br \/>\n        &lt;\/filter&gt;<br \/>\n \t&lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;<br \/>\n                &lt;fileNamePattern&gt;log\/zipped\/warn.%i.log.zip&lt;\/fileNamePattern&gt;<br \/>\n                &lt;minIndex&gt;1&lt;\/minIndex&gt;<br \/>\n                &lt;maxIndex&gt;60&lt;\/maxIndex&gt;<br \/>\n        &lt;\/rollingPolicy&gt;<\/p>\n<p>        &lt;triggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;<br \/>\n                &lt;maxFileSize&gt;100MB&lt;\/maxFileSize&gt;<br \/>\n        &lt;\/triggeringPolicy&gt;<br \/>\n        &lt;append&gt;true&lt;\/append&gt;<br \/>\n        &lt;encoder&gt;<br \/>\n            &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} &#8211; %msg %n&lt;\/pattern&gt;<br \/>\n        &lt;\/encoder&gt;<br \/>\n    &lt;\/appender&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;appender name=&quot;INFO-FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br \/>\n        &lt;file&gt;log\/info_logfile.log&lt;\/file&gt;<br \/>\n        &lt;filter class=&quot;ch.qos.logback.classic.filter.LevelFilter&quot;&gt;<br \/>\n                &lt;level&gt;INFO&lt;\/level&gt;<br \/>\n                &lt;onMatch&gt;ACCEPT&lt;\/onMatch&gt;<br \/>\n                &lt;onMismatch&gt;DENY&lt;\/onMismatch&gt;<br \/>\n        &lt;\/filter&gt;<br \/>\n\t &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;<br \/>\n                &lt;fileNamePattern&gt;log\/zipped\/info.%i.log.zip&lt;\/fileNamePattern&gt;<br \/>\n                &lt;minIndex&gt;1&lt;\/minIndex&gt;<br \/>\n                &lt;maxIndex&gt;60&lt;\/maxIndex&gt;<br \/>\n        &lt;\/rollingPolicy&gt;<br \/>\n        &lt;triggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;<br \/>\n                &lt;maxFileSize&gt;100MB&lt;\/maxFileSize&gt;<br \/>\n        &lt;\/triggeringPolicy&gt;<br \/>\n        &lt;append&gt;true&lt;\/append&gt;<br \/>\n        &lt;encoder&gt;<br \/>\n            &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} &#8211; %msg %n&lt;\/pattern&gt;<br \/>\n        &lt;\/encoder&gt;<br \/>\n    &lt;\/appender&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;appender name=&quot;DEBUG-FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br \/>\n        &lt;file&gt;log\/debug_logfile.log&lt;\/file&gt;<br \/>\n        &lt;filter class=&quot;ch.qos.logback.classic.filter.LevelFilter&quot;&gt;<br \/>\n                &lt;level&gt;DEBUG&lt;\/level&gt;<br \/>\n                &lt;onMatch&gt;ACCEPT&lt;\/onMatch&gt;<br \/>\n                &lt;onMismatch&gt;DENY&lt;\/onMismatch&gt;<br \/>\n        &lt;\/filter&gt;<\/p>\n<p>\t &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;<br \/>\n                &lt;fileNamePattern&gt;log\/zipped\/debug.%i.log.zip&lt;\/fileNamePattern&gt;<br \/>\n                &lt;minIndex&gt;1&lt;\/minIndex&gt;<br \/>\n                &lt;maxIndex&gt;60&lt;\/maxIndex&gt;<br \/>\n        &lt;\/rollingPolicy&gt;<\/p>\n<p>        &lt;triggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;<br \/>\n                &lt;maxFileSize&gt;100MB&lt;\/maxFileSize&gt;<br \/>\n        &lt;\/triggeringPolicy&gt;<br \/>\n        &lt;append&gt;true&lt;\/append&gt;<br \/>\n        &lt;encoder&gt;<br \/>\n            &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} &#8211; %msg %n&lt;\/pattern&gt;<br \/>\n        &lt;\/encoder&gt;<br \/>\n    &lt;\/appender&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;appender name=&quot;FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br \/>\n        &lt;file&gt;log\/all.log&lt;\/file&gt;<br \/>\n        &lt;filter class=&quot;ch.qos.logback.classic.filter.ThresholdFilter&quot;&gt;<br \/>\n                &lt;level&gt;TRACE&lt;\/level&gt;<br \/>\n        &lt;\/filter&gt;<\/p>\n<p>\t&lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;<br \/>\n      \t\t&lt;fileNamePattern&gt;log\/zipped\/all.%i.log.zip&lt;\/fileNamePattern&gt;<br \/>\n      \t\t&lt;minIndex&gt;1&lt;\/minIndex&gt;<br \/>\n      \t\t&lt;maxIndex&gt;60&lt;\/maxIndex&gt;<br \/>\n    \t&lt;\/rollingPolicy&gt;<br \/>\n        &lt;triggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;<br \/>\n      \t\t&lt;maxFileSize&gt;100MB&lt;\/maxFileSize&gt;<br \/>\n        &lt;\/triggeringPolicy&gt;<br \/>\n        &lt;append&gt;true&lt;\/append&gt;<br \/>\n        &lt;encoder&gt;<br \/>\n            &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} &#8211; %msg %n&lt;\/pattern&gt;<br \/>\n        &lt;\/encoder&gt;<br \/>\n    &lt;\/appender&gt;<br \/>\n&lt;!&#8211; ################################################################ &#8211;&gt;<br \/>\n    &lt;root&gt;<br \/>\n\t&lt;appender-ref ref=&quot;FILE&quot;\/&gt;<br \/>\n        &lt;appender-ref ref=&quot;WARN-FILE&quot;\/&gt;<br \/>\n        &lt;appender-ref ref=&quot;ERROR-FILE&quot;\/&gt;<br \/>\n        &lt;appender-ref ref=&quot;DEBUG-FILE&quot;\/&gt;<br \/>\n        &lt;appender-ref ref=&quot;INFO-FILE&quot;\/&gt;<br \/>\n    &lt;\/root&gt;<br \/>\n&lt;\/configuration&gt;[\/js]<\/p>\n<p>Creating log directory in ${jetty home}\/<\/p>\n<p>[js]<br \/>\nmkdir -p ${jetty home}log\/zipped<br \/>\n[\/js]<\/p>\n<p>Restart Jetty and now we can see logs inside ${jetty.home}\/log\/<br \/>\nThe above configuration file will create ERROR, WARN, INFO, DEBUG log files where according to the log levels log are stored.<br \/>\nAddition to this, if the\u00a0size of the file becomes equal to 100MB or greater then it will create a zip of log file.<\/p>\n<p>References:https:\/\/wiki.eclipse.org\/Jetty\/Tutorial\/Sifting_Logs_with_Logback<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering. Why Logback? For automatically removing old logs. It also automatically compresses archived log files. Provides a wide array of filtering capabilities. Logback-access, i.e. HTTP-access logging with brains, is an integral part of [&hellip;]<\/p>\n","protected":false},"author":919,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":59,"footnotes":""},"categories":[2348,1],"tags":[3660,3686,2540,3685,3659,3684,2785,2786,3687],"class_list":["post-34443","post","type-post","status-publish","format-standard","hentry","category-devops-technology","category-technology","tag-custom-log","tag-how-to-setup-logback-with-jetty","tag-jetty","tag-jetty-9-2","tag-jetty-log","tag-jetty-use-with-logback","tag-logback","tag-slf4j","tag-what-is-slf4j"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering. Why Logback? For automatically removing old logs. It also automatically compresses archived log files. Provides a wide array of filtering capabilities. Logback-access, i.e. HTTP-access logging with brains, is an integral part of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Anup Yadav\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Logback in Jetty\" \/>\n\t\t<meta property=\"og:description\" content=\"Using Logback for customized logs in Jetty\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Logback in Jetty\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Using Logback for customized logs in Jetty\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#article\",\"name\":\"Setting up Logback in Jetty-9.2.16 | TO THE NEW Blog\",\"headline\":\"Setting up Logback in Jetty-9.2.16\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anup-yadav\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2016\\\/06\\\/lblogo.jpg\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#articleImage\"},\"datePublished\":\"2016-06-30T18:58:15+05:30\",\"dateModified\":\"2016-07-01T11:44:36+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#webpage\"},\"articleSection\":\"DevOps, Technology, custom log, how to setup logback with jetty, jetty, jetty 9.2, Jetty Log, jetty use with logback, logback, slf4j, what is SLF4J\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#listItem\",\"name\":\"Setting up Logback in Jetty-9.2.16\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#listItem\",\"position\":3,\"name\":\"Setting up Logback in Jetty-9.2.16\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anup-yadav\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anup-yadav\\\/\",\"name\":\"Anup Yadav\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/d9863cea-6470-4cd7-9d4e-3815482898df_anup.yadav@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Anup Yadav\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/\",\"name\":\"Setting up Logback in Jetty-9.2.16 | TO THE NEW Blog\",\"description\":\"Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering. Why Logback? For automatically removing old logs. It also automatically compresses archived log files. Provides a wide array of filtering capabilities. Logback-access, i.e. HTTP-access logging with brains, is an integral part of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-logback-in-jetty\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anup-yadav\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anup-yadav\\\/#author\"},\"datePublished\":\"2016-06-30T18:58:15+05:30\",\"dateModified\":\"2016-07-01T11:44:36+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Setting up Logback in Jetty-9.2.16 | TO THE NEW Blog","description":"Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering. Why Logback? For automatically removing old logs. It also automatically compresses archived log files. Provides a wide array of filtering capabilities. Logback-access, i.e. HTTP-access logging with brains, is an integral part of","canonical_url":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#article","name":"Setting up Logback in Jetty-9.2.16 | TO THE NEW Blog","headline":"Setting up Logback in Jetty-9.2.16","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/anup-yadav\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/lblogo.jpg","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#articleImage"},"datePublished":"2016-06-30T18:58:15+05:30","dateModified":"2016-07-01T11:44:36+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#webpage"},"articleSection":"DevOps, Technology, custom log, how to setup logback with jetty, jetty, jetty 9.2, Jetty Log, jetty use with logback, logback, slf4j, what is SLF4J"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#listItem","name":"Setting up Logback in Jetty-9.2.16"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#listItem","position":3,"name":"Setting up Logback in Jetty-9.2.16","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/anup-yadav\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/anup-yadav\/","name":"Anup Yadav","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/d9863cea-6470-4cd7-9d4e-3815482898df_anup.yadav@tothenew.com.jpg","width":96,"height":96,"caption":"Anup Yadav"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/","name":"Setting up Logback in Jetty-9.2.16 | TO THE NEW Blog","description":"Log files record all the activity of a program during its execution lifetime. Generally used for diagnosing problems, auditing, debugging, or information gathering. Why Logback? For automatically removing old logs. It also automatically compresses archived log files. Provides a wide array of filtering capabilities. Logback-access, i.e. HTTP-access logging with brains, is an integral part of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/anup-yadav\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/anup-yadav\/#author"},"datePublished":"2016-06-30T18:58:15+05:30","dateModified":"2016-07-01T11:44:36+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Logback in Jetty","og:description":"Using Logback for customized logs in Jetty","og:url":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Logback in Jetty","twitter:description":"Using Logback for customized logs in Jetty","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"34443","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"Logback in Jetty","og_description":"Using Logback for customized logs in Jetty","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:30:11","updated":"2024-02-29 08:38:30","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSetting up Logback in Jetty-9.2.16\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Setting up Logback in Jetty-9.2.16","link":"https:\/\/www.tothenew.com\/blog\/setting-logback-in-jetty\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/919"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=34443"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34443\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=34443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=34443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=34443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}