목록로그 (2)
스택큐힙리스트
나는 SQL 문을 파일에 기록하고 싶습니다. application.properties에 다음과 같은 속성을 가지고 있습니다: spring.datasource.url=... spring.datasource.username=user spring.datasource.password=1234 spring.datasource.driver-class-name=net.sourceforge.jtds.jdbc.Driver spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true security.ignored=true security.basic.enabled=false logging.level.org.springframework.web=INFO lo..
저는 다음과 같은 구조를 가진 작은 파이썬 프로젝트가 있습니다 - Project -- pkg01 -- test01.py -- pkg02 -- test02.py -- logging.conf나는 stdout과 로그 파일에 메시지를 출력하기 위해 기본 로깅 모듈을 사용할 계획이다.로깅 모듈을 사용하기 위해서는 초기화가 필요하다. import logging.configlogging.config.fileConfig('logging.conf')logger = logging.getLogger('pyApp')logger.info('testing')현재, 로그 메시지를 기록하기 전에 매 모듈에서 이 초기화를 수행합니다. 프로젝트 전체에서 동일한 설정을 사용하여 로깅하기 위해 이 초기화를 한 번만 한 곳에서 수행할 수 있..