Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
Comparing SoftReference and WeakReference. Using a Java soft reference to implement a cache.
WeakReference and WeakHashMap
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
When in Java strong references are not enough, WeakReference and WeakHashMap could help us to save the day.
Some words on why they are useful and how garbage collector deals with them.
When in Java strong references are not enough, WeakReference and WeakHashMap could help us to save the day.
Some words on why they are useful and how garbage collector deals with them.
Simple Logback filtering
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
Logback filtering by XML configuration and using custom Java classes.
Logback filtering by XML configuration and using custom Java classes.
Loggers and appenders
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
How to configure loggers and appenders for Logback by XML and Groovy.
How to configure loggers and appenders for Logback by XML and Groovy.
Reloading Logback configuration (with debug)
This post has been moved to Biting Code, my blog dedicated to JVM languages.
The Logback autoscan configuration feature, and how to get debug information from configuration.
The Logback autoscan configuration feature, and how to get debug information from configuration.
Logback configuration
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
Logback could be configured using an XML or a Groovy file.
Logback could be configured using an XML or a Groovy file.
Changing log level programmatically
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
Sometimes there are good reasons to go through the SLF4J façade and work on the concrete logger framework. An example based on Logback is showed.
Sometimes there are good reasons to go through the SLF4J façade and work on the concrete logger framework. An example based on Logback is showed.
SLF4J and Logback
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
How to set up a Java application to use Logback and SLF4J as logging framework.
How to set up a Java application to use Logback and SLF4J as logging framework.
The fastest way of not logging
Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.
How much are you ready to pay for not logging? There is some costs that are unavoidable, but using SLF4J we can minimize them.
How much are you ready to pay for not logging? There is some costs that are unavoidable, but using SLF4J we can minimize them.
Getting system properties
This post has been moved to Biting Code, my blog dedicated to Java and other JVM languages.
A few words words on the class Properties and how to get System Properties.
A few words words on the class Properties and how to get System Properties.
Configuring JDK Logging
Please go to Biting Code, there you will find the post that was here, and much more stuff about Java and JVM-based languages.
How to configure JUL (java.util.logging), the standard JDK logger facility.
How to configure JUL (java.util.logging), the standard JDK logger facility.
SimpleLogger for SLF4J
Please go to Biting Code, there you will find the post originally here, and much more stuff about Java and JVM-based languages.
Some talk about NOPLogger and SimpleLogger for SLF4J
Some talk about NOPLogger and SimpleLogger for SLF4J
Setting up SLF4J
Please go to Biting Code, there you will find the post that was here, and much more stuff about Java and JVM-based languages.
SLF4J is not a Slartibartfast's nickname, but the acronym for Simple Logging Facade for Java. As its full name elegantly explains, its raison d'être is close to the Apache Commons Logging one, of which it is a sort of successor. The post is about how to make it work in your environment, and how to run a first very simple application SLF4J-aware.
SLF4J is not a Slartibartfast's nickname, but the acronym for Simple Logging Facade for Java. As its full name elegantly explains, its raison d'être is close to the Apache Commons Logging one, of which it is a sort of successor. The post is about how to make it work in your environment, and how to run a first very simple application SLF4J-aware.
Cloning a Collection
I moved the content to Biting Code, my blog dedicated to Java and JVM-based languages.
If you want to clone a collection, and what you have is just a pointer to its Collection interface, you have to (safely) downcast it to its actual type.
If you want to clone a collection, and what you have is just a pointer to its Collection interface, you have to (safely) downcast it to its actual type.
Solving linear equations
This post has been moved to Biting Code, my blog dedicated to Java and other JVM languages.
It shows an example of solution of how to solve a system of linear equation by the lineal package of the Apache Common Math Java library.
It shows an example of solution of how to solve a system of linear equation by the lineal package of the Apache Common Math Java library.
Random generators
I moved the content to Biting Code, my blog dedicated to Java and JVM-based languages.
The java.util.Random class makes available a few simple pseudo-random generators. When more refined generators are required, you could check out the ones provided by Apache Common Math.
The java.util.Random class makes available a few simple pseudo-random generators. When more refined generators are required, you could check out the ones provided by Apache Common Math.
Subscribe to:
Posts (Atom)