πŸ’»
Albert's Til
GitHub
  • 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
    • README
    • CS
      • Network
      • HTTP
        • NO-CACHE
      • 였λ₯˜ μ½”λ“œ
      • ORM 도ꡬ
      • Design Pattern
        • CQRS Pattern
          • Event Sourcing and CQRS pattern
        • Builder Pattern
    • DB
      • MySQL
        • Timeline
        • Pagination
        • Index
        • Database Performance Optimization Strategies
        • B+ tree
        • MySQL Connectors VS MySQL Shell(Scripting) VS MySQL Workbench
        • MySQL Storage Engine Architecture
      • Normalization & Denormalization
      • JPA
        • @Transactional
        • Why JPA?
        • About JPA
        • N+1 Issue
        • Index
        • ElementCollection&CollectionTable
        • orphanRemoval
        • CascadeType
        • Use Subselect
        • Dynamic Instance Creation
        • Paging
        • Order
        • Spefication
        • mappedBy
      • MongoDB
        • ObjectId
      • Why MySQL?
      • ACID properties of transactions
      • Between JPA and JDBC
      • Identifiers in Hibernate/JPA
    • Java
      • Jackson de/serialize
      • Collections.singletonList() vs List.of()
      • Manage dependencies in Gradle
      • Logging Level
      • Bean Validation
      • JVM Internals
        • Threads
          • Frame
        • Shared Between Threads
          • Classloader
            • Class Loader Hierarchy
            • Loading Linking Initialization
      • Java Collection Framework
      • Annotation
      • Generic
      • λ””λ―Έν„° 법칙
    • Spring
      • Caching
      • Spring Integration Overview
        • ThreadPollTaskExecutor
        • Messaging Bridge
        • Channel Adapter
        • Poller
        • Configuration and @EnableIntegration
        • Message Endpoints
        • Message Channels
      • HATEOAS
      • @Autowired vs Constructor Dependency Injection
      • Spring Security
        • JWT 토큰 μ‚¬μš©ν•œ 인가
        • OAuth 2 Login
        • OAuth 2 인증
        • 인가
        • 인증
        • PasswordEncoder
      • IoC Container
      • Filter,Interceptor,AOP,Argument Resolver
      • Spring Annotation
      • About Spring
    • Kafka
      • Error Channel
    • Infra
      • Scale Up || Scale Out
      • Docker
        • Dockerfile
        • Docker Hub Deploy
        • Command
      • Cloud μœ ν˜•
        • Infrastructure as a Service
        • Platform as a Service
        • Software as a Service
      • 무쀑단 배포
        • μ—”μ§„μ—‘μŠ€(Nginx)
      • μ½”λ“œ μžλ™ 배포
        • Technical
      • AWS EC2
        • PEM(Privacy Enhanced Mail) ν‚€
      • AWS RDS
      • AWS S3
    • CodeSquad
      • Spring Boot Project 1μ£Όμ°¨ 회고
      • Spring Boot Project 2μ£Όμ°¨ 회고
      • Spirng Boot Project 3μ£Όμ°¨ 회고
      • Spring Boot Project 4μ£Όμ°¨ 회고
    • Foody Moody ν”„λ‘œμ νŠΈ
      • Query Performance Comparison
      • HeartCount Asynchronous Issue
      • DeferredResult
      • ResponseBodyEmitter
      • SseEmitter (Spring)
      • Server-Sent Events (SSE)
      • 기술 μŠ€νƒ 적용 이유
      • NO-CACHE(HTTP)
      • Transactional
    • DDD
      • AggregateId
    • Test
      • RestAssured
    • Coding and Algorithmic Problems
      • 819. Most Common Word
      • 344. Reverse String
      • 125. Valid Palindrome
      • 937. Reorder Data in Log Files
    • Node
      • Async... Await...
      • Custom Transactional Decorator Challenger
    • Python
      • Python Basic Grammar
        • Comments and Input/Output
        • Variable
        • Data type
        • Operations and syntax
        • List,Tuple,Dictionary,Set
        • Function
        • Conditional statement
        • Loop
    • HTML
      • HTML Basic
      • HTML Basic Tags
      • HTML Form Tags
      • HTML Table Tags
    • CSS
      • CSS Basic
      • CSS Practice
Powered by GitBook
On this page
  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL

Was this helpful?

  1. 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
  2. Java

Logging Level

TRACE

κ°€μž₯ μƒμ„Έν•˜κ³  λ―Έμ„Έν•œ 정보λ₯Ό μ œκ³΅ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ˜λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. TRACE 둜그 λ ˆλ²¨μ€ Log4j의 κ°€μž₯ μƒμ„Έν•œ 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. TRACE 둜그 λ ˆλ²¨μ€ 디버깅을 μœ„ν•΄ 맀우 μžμ„Έν•œ 정보λ₯Ό 좜λ ₯ν•˜λ―€λ‘œ, TRACE 둜그 λ ˆλ²¨μ„ μ‚¬μš©ν•˜λ©΄ 둜그 파일의 크기가 컀질 수 μžˆμŠ΅λ‹ˆλ‹€.

  • μ•Œκ³ λ¦¬μ¦˜ λ‚΄λΆ€μ—μ„œ μ‹€ν–‰λ˜λŠ” 각 단계에 λŒ€ν•œ μžμ„Έν•œ 정보λ₯Ό λ‘œκΉ…ν•˜λŠ” 경우

  • 각 μ„œλΉ„μŠ€ μš”μ²­μ— λŒ€ν•œ λ§€κ°œλ³€μˆ˜μ™€ λ°˜ν™˜κ°’μ„ λ‘œκΉ…ν•˜λŠ” 경우

  • 둜그 좜λ ₯에 λŒ€ν•œ μ„±λŠ₯ μ΄μŠˆλ‚˜ μž₯μ• λ₯Ό μΆ”μ ν•˜λŠ” 경우

DEBUG

디버깅을 μœ„ν•œ μƒμ„Έν•œ 정보λ₯Ό μ œκ³΅ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ˜λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. 디버깅을 μœ„ν•΄ 좜λ ₯λ˜λŠ” λ©”μ‹œμ§€λ₯Ό ν¬ν•¨ν•©λ‹ˆλ‹€.

  • 디버깅을 μœ„ν•΄ μ‚¬μš©μžκ°€ κ²€μƒ‰ν•œ λ°μ΄ν„°μ˜ 상세 정보λ₯Ό 좜λ ₯ν•˜λŠ” 경우

  • μ„œλ²„μ—μ„œ λ°œμƒν•œ 였λ₯˜λ₯Ό 좔적할 λ•Œ

  • μ‚¬μš©μž 인증 κ³Όμ •μ—μ„œ λ°œμƒν•˜λŠ” 문제λ₯Ό ν•΄κ²°ν•˜λŠ” 경우

INFO

μ‹œμŠ€ν…œμ΄ μ‹€ν–‰λ˜λŠ” λ™μ•ˆ μ€‘μš”ν•œ 정보λ₯Ό κΈ°λ‘ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ˜λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. 일반적인 정보 λ©”μ‹œμ§€λ₯Ό 좜λ ₯ν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • μ„œλΉ„μŠ€κ°€ μ‹œμž‘λ˜κ±°λ‚˜ μ€‘μ§€λœ 경우

  • μ‚¬μš©μžκ°€ μƒˆλ‘œμš΄ 계정을 λ§Œλ“  경우

  • API μš”μ²­μ΄ μ„±κ³΅μ μœΌλ‘œ 처리된 경우

WARN

잠재적인 λ¬Έμ œκ°€ μžˆκ±°λ‚˜ 예기치 μ•Šμ€ 상황이 λ°œμƒν–ˆμ„ λ•Œ μ‚¬μš©λ˜λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. μ‹œμŠ€ν…œμ€ κ³„μ†ν•΄μ„œ λ™μž‘ν•˜μ§€λ§Œ 잠재적인 μœ„ν—˜μ΄ μžˆμŠ΅λ‹ˆλ‹€.

  • API에 잘λͺ»λœ μš”μ²­μ΄ μ „μ†‘λœ 경우

  • μ‹œμŠ€ν…œμ˜ μš©λŸ‰ ν•œκ³„μ— λ„λ‹¬ν•˜κ±°λ‚˜ μ΄ˆκ³Όν–ˆμ„ λ•Œ

  • λ‘œκ·ΈμΈμ„ μ‹œλ„ν•˜λŠ” μ‚¬μš©μžκ°€ 잘λͺ»λœ μ•”ν˜Έλ₯Ό μž…λ ₯ν•œ 경우

ERROR

였λ₯˜κ°€ λ°œμƒν–ˆμ„ λ•Œ μ‚¬μš©λ˜λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. μ‹œμŠ€ν…œμ€ κ³„μ†ν•΄μ„œ λ™μž‘ν•˜μ§€λ§Œ μ˜ˆμƒμΉ˜ λͺ»ν•œ κ²°κ³Όλ₯Ό μ΄ˆλž˜ν•  수 μžˆλŠ” 였λ₯˜μž…λ‹ˆλ‹€.

  • νŒŒμΌμ„ 읽을 λ•Œ 였λ₯˜κ°€ λ°œμƒν•œ 경우

  • λ°μ΄ν„°λ² μ΄μŠ€μ— μ—°κ²°ν•  수 μ—†λŠ” 경우

  • μš”μ²­μ„ μ²˜λ¦¬ν•  수 μ—†λŠ” 경우

FATAL

κ°€μž₯ μ‹¬κ°ν•œ 였λ₯˜λ₯Ό λ‚˜νƒ€λ‚΄λŠ” 둜그 λ ˆλ²¨μž…λ‹ˆλ‹€. μ‹œμŠ€ν…œμ΄ μ€‘λ‹¨λ˜κ±°λ‚˜ μž₯μ• κ°€ λ°œμƒν•œ 경우 μ‚¬μš©λ©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄, λ°μ΄ν„°λ² μ΄μŠ€ μ„œλ²„κ°€ λ‹€μš΄λ˜κ±°λ‚˜ μ‹œμŠ€ν…œ μžμ›μ΄ λΆ€μ‘±ν•΄μ Έμ„œ μ„œλΉ„μŠ€κ°€ μ€‘μ§€λ˜λŠ” 경우 FATAL 둜그 λ ˆλ²¨μ„ μ‚¬μš©ν•˜μ—¬ 이λ₯Ό 기둝할 수 μžˆμŠ΅λ‹ˆλ‹€.

  • λ°μ΄ν„°λ² μ΄μŠ€ 연결이 λŠμ–΄μ‘Œμ„ λ•Œ

  • μ„œλΉ„μŠ€λ₯Ό μ‹œμž‘ν•  λ•Œ ν•„μš”ν•œ ꡬ성 파일이 μ—†λŠ” 경우

  • μ‹œμŠ€ν…œ μžμ› λΆ€μ‘±μœΌλ‘œ 인해 μ„œλΉ„μŠ€κ°€ μ€‘μ§€λœ 경우

Last updated 2 years ago

Was this helpful?

Logging Levels: What They Are & How to Choose Them - SematextSematext
Logo