Home – Datmt

  • Centralized Logging with Spring Boot and MongoDB using Logback

    Centralized Logging with Spring Boot and MongoDB using Logback

    Table of Contents1 Introduction2 Why MongoDB for Logging?3 Configuring Spring Boot for MongoDB Logging3.1 Adding dependencies3.2 Configure logback.xml3.3 Write log to MongoDB database4 Send logs to MongoDB5 Benefits and Considerations6 Conclusion Introduction As applications grow in complexity and scale, traditional file-based logging can become difficult to manage and analyze. Logging to an external source offers…

    Read More


  • Mastering Advanced Logback Configurations in Spring Boot

    Mastering Advanced Logback Configurations in Spring Boot

    Table of Contents1 Introduction2 The logback.xml & logback-spring.xml3 logback.xml example4 Sections in a logback.xml file4.1 Configuration Tag4.2 Root Logger Section4.3 Appender Section4.4 Logger Section5 Fine-Tuning Log Levels6 Advanced Rolling File Strategies6.1 Time based Rolling6.2 Time and Size Based Rolling7 Log Filtering8 Conclusion Introduction In previous posts, we introduced logging fundamentals in Spring Boot and covered…

    Read More


  • Configuring Basic Logging in Spring Boot

    Configuring Basic Logging in Spring Boot

    Table of Contents1 Introduction2 Configuring Logging Levels2.1 Global and Specific Logging Levels2.2 Console Logging Configuration2.2.1 Customizing Console Log Pattern3 File Logging Configuration3.1 Basic File Logging3.2 Rolling Log Files3.3 Rolling Log Files4 Conclusion Introduction In our previous post, we introduced the fundamentals of logging in Spring Boot, covering why logging is crucial and the basics of…

    Read More


  • Logging Fundamentals in Spring Boot

    Logging Fundamentals in Spring Boot

    Table of Contents1 Introduction2 Why Logging Matters3 Spring Boot and Logging4 Understanding Logging Levels5 Configuring Logging Levels in Spring Boot6 Conclusion Introduction Logging is an essential aspect of software development, providing insights into what’s happening inside an application running in development or production. Effective logging practices help developers diagnose issues, understand application behavior, and improve…

    Read More


  • How To Pretty Print JSON in Javascript/TypeScript

    How To Pretty Print JSON in Javascript/TypeScript

    Table of Contents1 Overview2 The JSON.stringify function3 Pretty Print JSON with JSON.stringify4 Conclusion Overview Recently, while working on a DynamoDB editing tool, I needed to improve the look of my editor. The JSON was all in one line and it’s hard to see the values/properties that way. It turned out, pretty print JSON is quite…

    Read More