
IT/파이썬 2021. 7. 27.
파이썬 동작 로그 파일 저장하기 - flask gunicorn logging
무슨 로그 파일 저장하는 것이 이렇게나 어렵노? Flask + Gunicorn + Nginx 이렇게 궁합을 싸 놓으니, 어데 저장되는지 누가 주체인지도 모르겠고 어렵다. 그냥 내가 원할 때 저장하고 파일 위치도 쉽게 알 수 있으면 되는데..... 일단 아래 코드 적용해서 돌려보니 작업 디렉토리에 파일이 생기긴 하네. 잘 모르지만 일단 아래 코드로 적용 원본 코드 위치 - https://gist.github.com/andrisasuke/0d5958c076fcf44e6a15c9d99d9c8c86 flask logging gunicorn and file flask logging gunicorn and file. GitHub Gist: instantly share code, notes, and snippets...
