Where are my log entries?

Options
Hi, I used this in my WebHooksPlugin.cs file to stoer some info in the logs:

this.PluginHost.LogDebug("Message");

However, I can't find my entries in any of the log files.

Where are them?

Best Answer

Answers

  • chvetsov
    Options
    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,
    ilya
  • 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?
  • chvetsov
    Options
    check whether DEBUG level is enabled in log4net.config
  • 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.

  • That did the trick.

    Thanks.
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited February 2017
    Options
    Hi @jesusgumbau,

    Thank you for choosing Photon!

    Please take the time to read the docs carefully, it might help you in the future. :wink:
    The information you were looking for could be found here.
  • 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.