Category: Logging

Node.js / Express app generator: with ES.next, API validation, documentation, logging, and more

[Take me to the app generator] I’m at work on a new project. My team and I are building a highly scalable service platform and have elected to build it using the microservices architecture pattern. The platform consists of many microservices, each of which is typically owned by a collaborating team. Teams are empowered to make decisions and choose technologies that best fit the need. This means that services may...

How to programmatically set Java Logging defaults and override these defaults using logging.properties

The Java Logging APIs provide a number of properties for create and configuring  Java loggers.  If you plan to create a new Java Logger for your project, it may be very desirable to define a default configuration you logger and handlers. It is also desirable to enable users to override these defaults using the JVM logging.properties file. Why is this desirable? The JVM logging.properties ships with a default configuration. This...

Java Logging using the Java Logging APIs

In this post, we will provide an overview of the Java Logging APIs along with some simple usage examples. On tap: 1. Java Logging APIs Overview     1.1. Log Levels     1.2. Loggers     1.3. Handlers     1.4. Formatters     1.5. Filters 2. The Configuration File     2.1. Default Configuration 1 Java Logging APIs Overview The Java Development Kit (JDK) provides a simple logging...