Home / Function/ Level() — netty Function Reference

Level() — netty Function Reference

Architecture documentation for the Level() function in Log4J2Logger.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6327c955_bee5_4c19_0910_9f29ed534272["Level()"]
  df31fa97_382a_a6e4_2038_3848238e4d28["Log4J2Logger"]
  6327c955_bee5_4c19_0910_9f29ed534272 -->|defined in| df31fa97_382a_a6e4_2038_3848238e4d28
  style 6327c955_bee5_4c19_0910_9f29ed534272 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/logging/Log4J2Logger.java lines 127–142

    private static Level toLevel(InternalLogLevel level) {
        switch (level) {
            case INFO:
                return Level.INFO;
            case DEBUG:
                return Level.DEBUG;
            case WARN:
                return Level.WARN;
            case ERROR:
                return Level.ERROR;
            case TRACE:
                return Level.TRACE;
            default:
                throw new Error("Unexpected log level: " + level);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does Level() do?
Level() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/logging/Log4J2Logger.java.
Where is Level() defined?
Level() is defined in common/src/main/java/io/netty/util/internal/logging/Log4J2Logger.java at line 127.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free