$logger

Namespace

$logger

Description:
  • 로그관리자

Author:
  • 이승갑 (dltmdrkq2@gmail.com)
  • 정민석 (whitn86@gmail.com)

Methods

(static) debug(…msg)

Description:
  • 디버깅용의 메시지를 남기는 가장 낮은 레벨의 로그 공통함수나 공통컴포넌트의 자세한 정보를 출력할 때 사용

Example
$logger.debug("[SYSTEM]","오류가 발생했습니다.")
Parameters:
Name Type Attributes Description
msg string <repeatable>

로그로 출력할 메시지

(static) error(…msg)

Description:
  • 오류 발생시 메시지를 남기는 네번째 레벨의 로그. 비정상적인 상황이 발생했지만, 치명적이지 않아 작업은 중단하지 않았을 경우 부분적인 오동작 가능성을 알리기 위해 사용

Example
$logger.error("[SYSTEM]","오류가 발생했습니다.")
Parameters:
Name Type Attributes Description
msg string <repeatable>

로그로 출력할 메시지

(static) fatal(…msg)

Description:
  • 심각한 오류 발생시 메시지를 남기는 가장 높은 레벨의 로그. 비정상적인 상황으로 인해 작업이 더이상 진행 불가능할 경우 발생.

Example
$logger.fatal("[SYSTEM]","오류가 발생했습니다.")
Parameters:
Name Type Attributes Description
msg string <repeatable>

로그로 출력할 메시지

(static) info(…msg)

Description:
  • 단순정보출력용의 메시지를 남기는 두번째로 낮은 레벨의 로그 일반 업무화면에서 정보 출력용으로 사용(trace 대체) 로컬서버와 테스트서버의 loglevel 기본값.

Example
$logger.info("[SYSTEM]","오류가 발생했습니다.")
Parameters:
Name Type Attributes Description
msg string <repeatable>

로그로 출력할 메시지

(static) warn(…msg)

Description:
  • 경고성 메시지를 남기는 세번째 레벨의 로그. 오동작 유발 가능성이 있거나, 비정상적인 상황이 발생하였지만 복원하였을 경우 사용. 실서버의 loglevel 기본값.

Example
$logger.warn("[SYSTEM]","오류가 발생했습니다.")
Parameters:
Name Type Attributes Description
msg string <repeatable>

로그로 출력할 메시지