Where are my log entries?
Options
Best Answer
-
your log4net config should contain this:
<logger name="Photon.Hive.HiveGame.HiveHostGame.Plugin"> <level value="DEBUG" /> </logger>
5
Answers
-
Hi, jesusgumbau
it depends on how do you start your server.
you may take a look into deploy/log/ or in server-src/LoadBalancing/log
best,
ilya0 -
Hi,
Yes log my files are there... but my messages are not registered there. I put these in all my method calls in WebHooksPlugin.cs:this.PluginHost.LogDebug("================================== method_name");
But these are not registered in my log files.
Any ideas?0 -
check whether DEBUG level is enabled in log4net.config0
-
Hi, please can you provide a more elaborate answer?
I want to log the debug messages from the Webhooks1.2 plugin in Loadbalancing.
Then in deploy\Loadbalancing\GameServer\bin\log4net.config I did these changes:<log4net debug="true">
and then I added this to the file:<logger name="Photon.Hive.Plugin.WebHooks.WebHooksPlugin"> <level value="DEBUG" /> </logger>
But I can't get my debug mesages yet.
0 -
your log4net config should contain this:
<logger name="Photon.Hive.HiveGame.HiveHostGame.Plugin"> <level value="DEBUG" /> </logger>
5 -
That did the trick.
Thanks.0 -
Hi @jesusgumbau,
Thank you for choosing Photon!
Please take the time to read the docs carefully, it might help you in the future.
The information you were looking for could be found here.0 -
Hi @JohnTube,
I saw that document, but it was not clear to me if I had to use this string "Photon.Hive.HiveGame.HiveHostGame.Plugin" or if I needed to change it by my own.1