JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Logging fundamentals: java.util.logging, Log4j, SLF4J

    JAVA 25 SELF
    63 level,0 lecture
    Why applications need logs, and why simply using System.out.println doesn’t save you in production. We’ll break down the levels ERROR/ WARN/ INFO/ DEBUG/ TRACE, the built-in stack java.util.logging and the settings file logging.properties, get acquainted with Log4j 2, Logback and the facade SLF4J. We’ll compare with console output, add dependencies, and dissect common configuration and usage mistakes.
    Open
  • Formatting and log levels: best practices

    JAVA 25 SELF
    63 level,1 lecture
    We break down what makes a good log message (timestamp, level INFO/ ERROR, logger name, text, stack), how to format entries correctly using SLF4J/Log4j2 templates ( "{}" instead of concatenation), how to log exceptions ( logger.error(..., ex)), when to use levels ERROR/ WARN/ INFO/ DEBUG/ TRACE, as well as best practices: no sensitive data, clear messages, correlation IDs ( orderId, userId) and a solid log4j2.xml configuration.
    Open
  • Logging in multithreaded and web applications

    JAVA 25 SELF
    63 level,2 lecture
    How to make logs reliable in multithreading and on the web: thread safety of mature libraries ( Logback, Log4j 2, java.util.logging), MDC context with requestId propagation, integration with Spring filters and error handlers, how it differs from System.out, nuances of thread pools, and tracing in microservices (traceId, OpenTelemetry). We break down practical examples and common mistakes, using SLF4J and Logger as a static final field.
    Open
  • JVM Monitoring: JMX, VisualVM, Java Flight Recorder

    JAVA 25 SELF
    63 level,3 lecture
    This lecture is a practical guide to monitoring the JVM: how to read standard metrics via JMX and JConsole, how to visually observe memory, threads, and profile methods in VisualVM (including heap dump and thread dump), and how to record a “black box” with Java Flight Recorder and analyze it in JDK Mission Control. We’ll show launch commands ( -XX:StartFlightRecording), walk through typical analysis scenarios for GC/threads, and common mistakes.
    Open
  • Profiling and code optimization: tools, approaches

    JAVA 25 SELF
    63 level,4 lecture
    We explain how profiling differs from monitoring, which metrics matter (method execution time, memory, threads, locks), and which tools to use: VisualVM, Java Flight Recorder, as well as commercial profilers. In practice, we examine a “slow” calculator, learn to find hot spots, analyze a heap dump, and remove bottlenecks by replacing algorithms, reducing allocations, and caching. We wrap up with a visual diagram of the optimization process and an overview of common pitfalls.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy