我的worldserver.conf.dockerdist文件添加了以下内容:
LogLevel = 3
LogFileLevel = 3
上面文件中的其他设置是文件随附的设置,此处未显示。日志目录保留为'LogsDir =“ / azeroth-server / logs”'
使用交互模式,我发现worldserver容器中的“ / azeroth-server / log”目录为空。我希望在那里生成日志。
我通过使用交互模式检查内容来验证worldserver.conf是否已正确复制到容器中。
我可以知道如何生成日志文件吗?
答案 0 :(得分:2)
发现这是由于容器的配置文件中的错误引起的。
错误:
LogsDir = "/azeroth-server/logs" # will reflect on your host directory: docker/worldserver/logs
右:
LogsDir = "/azeroth-server/logs"
“#将反映在您的主机目录上:docker / worldserver / logs”不应与LogsDir变量位于同一行。