Polymorphic Deserialization with Jackson

When serializing POJOs to JSON we lose a very valuable information about the polymorphic nature of the Java object. When we deserialize the same object from JSON we have to know the exact object type and we cannot deserialize to a supertype. Lucky for us, Jackson offers the option of polymorphic deserialization. The problem when deserializing JSON to POJO Let …

Log hierarchy in Logback

Log hierarchy in Logback is based on the log names. That is a characteristic that makes lots of interesting and handy features possible. The post looks into a couple of examples how that works. How named log hierarchy works According to the logger documentation, a logger is said to be an ancestor of another logger if its name followed by a …