List/Grid Tag Archives: Logging

SiftingAppender: logging different threads to different log files
One novel feature of Logback is SiftingAppender (JavaDoc). In short it’s a proxy appender that creates one child appender per each unique value of a given runtime property. Typically ...

Your logs are your data: logstash + elasticsearch
Topic of today’s post stays a bit aside from day-to-day coding and development but nonetheless covers a very important subject: our application log files. Our apps do generate ...

Effective Logging in Java/JEE – Mapped Diagnostic Context
It all started when i was sitting with a colleague to resolve some application issue, when i noticed something interesting. He was merging the code and my eyes caught the attention ...

Mixin in Java with Aspects – for a Scala traits sample
Scala traits allow new behaviors to be mixed into a class. Consider two traits to add auditing and version related fields to JPA entities: package ...

Spring: Setting Logging Dependencies
This post describes how to set-up logging dependencies in Spring. It is based on information available in a post by Dave Syer’s. A reminder on Java logging frameworks is available here. ...

Grails SQL Logging part 2 – groovy.sql.Sql
I discussed options for logging Hibernate-generated SQL in an earlier post but today I was trying to figure out how to see the SQL from groovy.sql.Sql and didn’t have much luck ...

Logging Hibernate SQL
There are two well-known ways to log Hibernate SQL in Grails; one is to add logSql = true in DataSource.groovy (either in the top-level block for all environments or per-environment) dataSource ...

Where do the stack traces come from?
I believe that reading and understanding stack traces is an essential skill every programmer should posses in order to effectively troubleshoot problems with every JVM language (see ...

How to change logging level in runtime
Changing the log logging level in runtime is important mainly in production environment where you might want to have debug logging for limited amount of time. Well, changing the root ...

Logback: Logging revisited
Hi, I am back again with my rant about logging as an inherent part of any application design and development. I am a big fan of strong basics, and in my humble opinion logging is one ...


