Skip to content
GwiyeomGo Tech Blog
About GwiyeomGo

GOLANG log level

GOLANG, LOG, 20222 min read

The standard ranking of logging levels is as follows: ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF.

LevelDescription
ALLAll levels including custom levels.
DEBUGDesignates fine-grained informational events that are most useful to debug an application.(디버깅하는 데 가장 유용한 세부 정보 이벤트를 지정)
INFODesignates informational messages that highlight the progress of the application at coarse-grained level.(강조하는 정보 메시지를 지정)
WARNDesignates potentially harmful situations.(잠재적으로 유해한 상황을 지정,애플리케이션이 피해를 입었음을 의미하는 것은 아님 사실 코드는 평소와 같이 계속 작동)
ERRORDesignates error events that might still allow the application to continue running.응용 프로그램 실행을 계속 허용할 수 있는 오류 이벤트를 지정합니다.(응용 프로그램이 중단되는 것은 아님)
FATALDesignates very severe error events that will presumably lead the application to abort.예를 들어 애플리케이션이 데이터 저장소에 연결할 수 없는 경우 치명적인 로그 수준을 사용할 수 있습니다.특정 오류 이벤트를 실행할 수 있는 매우 심각한 오류 이벤트를 지정합니다.
OFFThe highest possible rank and is intended to turn off logging.
TRACEDesignates finer-grained informational events than the DEBUG.(용 프로그램의 동작에 대한 모든 세부 정보를 캡처,DEBUG 로그 수준보다 더 세밀, TRACE 로그 수준을 사용하여 코드의 매개 변수를 쿼리하거나 알고리즘 단계를 해석)

참고/출처

© 2024 by GwiyeomGo Tech Blog. All rights reserved.