I have some basic logging set up for my web app. It will automatically generate a log.log
file at the root of my project. Now I've deployed the app in Docker container on a Virtual Machine instance. What is the recommended way to view my log.log file and delete old log.log file? For example, I see a few options:
- create a route like /log that returns the file when I visit the route (maybe add some basic authorization steps)
- log into my remote server and view the log.log file
Or is there any other best practices?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…