spring boot nginx 로그 출력
488
alstn87750
작성한 질문수 4
0
IDE에서 콘솔에 log.info() 로 작성한 로그들이나, select문같은 쿼리들 잘 출력이 되는데 aws ubuntu nginx 로 배포한 서버에서 이런 콘솔 로그들을 찍어보고 싶어서 application.yml 파일에 설정도 하고 해봐도 /var/log/nginx/ 밑에 accesslog에는 제가 보고싶은 로그들이 안 찍히더라고요. /var/www/admin/log/ 로그에도 마찬가지고요 sysout이나 log들을 실서버에서 출력해서 보는 방법은 없을까요?
spring:
profiles: real
datasource:
hikari:
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
jdbc-url: jdbc:log4jdbc:sqlserver://localhost:1433;databasename=test
username: sa
password: *****
servlet:
multipart:
max-file-size: 200MB
max-request-size: 200MB
thymeleaf:
cache: false
logging:
dir: /var/www/admin/log/
level:
org.springframework: ERROR
org.springframework.web: ERROR
org.hibernate.sql: OFF
mybatis:
mapper-locations: classpath:mybatis/mapper/**/*.xml
pagehelper:
helper-dialect: sqlserver
reasonable: true
supportMethodsArguments: true
server:
servlet:
session:
timeout: 4320000m
cookie:
name: admin_JSESSIONID
max-age: 432000m
port: 8080
tomcat:
basedir: ./
accesslog:
enabled: true
directory: logs
suffix: .log
prefix: access_log
file-date-format: .yyyy-MM-dd
pattern: common
답변 0
강의 관련 질문드립니다.
1
68
2
[시험 준비] AICE Associate 단기간 합격을 위한 모의고사 활용 방법 문의
1
65
1
왜 이름이 Graph engineering인가요?
1
46
2
run.py 실행시키면, 자동으로 바로 경제 지표 데이터를 수집해요
1
30
2





