DOI QR코드

DOI QR Code

Building a Log Framework for Personalization Based on a Java Open Source

JAVA 오픈소스 기반의 개인화를 지원하는 Log Framework 구축

  • 신충섭 (서강대학교 정보통신대학원) ;
  • 박석 (서강대학교 컴퓨터공학과)
  • Received : 2014.11.24
  • Accepted : 2015.05.21
  • Published : 2015.08.15

Abstract

A log is for text monitoring and perceiving the issues of a system during the development and operation of a program. Based on the log, system developers and operators can trace the cause of an issue. In the development phase, it is relatively simple for a log to be traced while there are only a small number of personnel uses of a system such as developers and testers. However, it is the difficult to trace a log when many people can use the system in the operation phase. In major cases, because a log cannot be tracked, even tracing is dropped. This study proposed a simplified tracing of a log during the system operation. Thus, the purpose is to create a log on the run time based on an ID/IP, using features provided by the Logback. It saves an ID/IP of the tracking user on a DB, and loads the user's ID/IP onto the memory to trace once WAS starts running. Before the online service operates, an Interceptor is executed to decide whether to load a log file, and then it generates the service requested by a certain user in a separate log file. The load is insignificant since the arithmetic operation occurs in a JVM, although every service must pass through the Interceptor to be executed.

Log란 프로그램 개발이나 운영 시 시스템의 문제점을 파악하거나 운영상태에서 모니터링 하기 위한 데이터를 의미한다. 시스템 개발 시에는 개발자 및 테스터를 비롯한 소수의 사람들만 로그를 관리하므로 로그 추적이 간단하다. 그러나 운영시점에서는 시스템 특성에 따라 다양한 사용자들이 동시에 사용하기 때문에 로그 추적이 어려우며, 로그 추적을 하지 못해 원인 추적을 포기하는 경우도 자주 발생한다. 본 논문에서는 시스템 운영시 발생할 수 있는 로그 추적의 어려움을 해소하기 위하여 로그백(Logback)에서 제공하는 기능을 이용한 ID/IP기반 런타임 로그 기록 기법을 제안한다. 제안 기법은 데이터베이스에 추적하고자 하는 사용자의 ID/IP를 저장하고, WAS 기동 시 사용자의 ID/IP를 메모리에 적재하여 온라인 서비스가 실행되기 전 interceptor를 통해 로그 파일 적재 유무를 판단하여 특정 사용자가 요청하는 서비스를 별도의 로그 파일에 생성하게 된다. 제안 기법은 모든 서비스가 Interceptor를 거쳐 서비스가 수행되어야 하는 부담이 발생하지만 JVM안에서 연산이 발생하므로 시스템 부하가 크지 않다.

Keywords

Acknowledgement

Supported by : 한국연구재단

References

  1. Nagappan Meiyappa, Vouk Mladen, "Abstracting log lines to log event types for mining software system logs," 2010 7th IEEE Working Conference on Mining Software Repositories (MSR), pp. 114-117, May. 2010.
  2. B. Kim, "Design and Implementation of Log Framework based on AOP," Master degree paper Graudate School of Information and Technology in Sogang University, 2009.
  3. Y. O. Kim, Y. L. Choi, K. B. Sung, N. Y. Lee, J. B. Kim, "Logging Based System Design and Implementation of Business Transaction Management for a Distributed Network Environment," The Journal of Korean Institute of Communications and Information Sciences, Vol. 38B, No. 12, pp. 976-983, Dec. 2013. (in Korean) https://doi.org/10.7840/kics.2013.38B.12.976
  4. M. S. Kim, "A Personalized Extraction Method using Object Information," Master degree paper in Korea University, 2004.
  5. SLF4J, [Online]. Available: http://www.slf4j.org/
  6. LOGBACK, [Online]. Available: http://logback.qos.ch/
  7. Class MDC, [Online]. Available: http://www.slf4j.org/api/org/slf4j/MDC.html