How to find missing Red5 log files
By default Red5 0.7.0 stores its logs into the log folder (/opt/red5/log/ on Linux or C:Program FilesRed5log on Windows) but unless you are running Red5 as a service on Windows you will never see any log files in that folder.
Here is what you need to do:
- make sure the log folder mentioned above exists and it is writable. If you compile Red5 yourself the log folder is not created, you need to manually create it.
- edit Red5/conf/logback.xml and change the path for the red5 general log from: ../log/red5.log to: log/red5.log (leave the path unchanged if you are running Red5 as a service on Windows)
- edit Red5/conf/logback.xml and change the path for the error log from: ../log/error.log to: log/error.log (leave the path unchanged if you are running Red5 as a service on Windows )
- edit Red5/conf/logback.xml and change the logging level for the org.red5.server.net.rtmp.RTMPHandler logger from OFF to DEBUG. This will ensure any errors that happen while a user is connecting to the Red5 server are properly logged in the log files.
There you go, you should now Restart the Red5 server and look for your newly created logs in Red5/log.
This file: Red5/conf/logback.xml controls the logging for the entire Red5 server, but Red5 applications might have their own logging configuration file. Such a file (if any ) should be located at Red5/webapps/application_name/WEB-INF/classes/logback.xml .
Things might change in future versions of Red5 so I will keep this post updated