Conversion Patterns
개요
PatternLayout 에서 로깅 메시지의 형식을 설정할 때 사용. % 기호로 시작.
conversion specifier
format modifiers
표기설명
%-왼쪽 정렬
%5최소 넓이 확보(5칸 이상)
%.10최대 넓이 제한(10칸 이하)
 
conversion character
%cCategory(Logger 이름)
%CClass(Full qualified): %C{1} 로 패키지 생략
%dDate: %d{HH:mm:ss,SSS} 등으로 지정 가능. 디폴트는 %d{ISO8601}.
%FFile
%LLine number
%mMessage
%MMethod
%nNew line
%pPriority. 로깅 레벨
%rRunnit time(in m/s)
%tthread
%llocation.