# Logging

Recording structured runtime events to help operate and diagnose software.

## What is **Logging** in Java?

**Logging** — Recording structured runtime events to help operate and diagnose software.

```java
import java.util.logging.Logger;

class OrderService {
    Logger logger = Logger.getLogger("orders");

    void acceptOrder() {
        logger.info("Order accepted");
    }
}
```

Level: Freelancer · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/freelancer)

Updated: September 27, 2026

## In other subjects

- [Logging in C#](https://www.ask-codey.com/glossary/logging-c-sharp)

Source: https://www.ask-codey.com/glossary/logging
