Logs of LoadBalancing app in Visual Studio
Options
BlastOff
✭
Hi!
I'm trying to extend the LoadBalancing app but I first need to understand its execution flow. I've tried to add my own debug messages but I can't see them in the VS console.
Here's what I've done:
-I've opened the photon-sdk/src-server/LoadBalancing/LoadBalancing.sln project in Visual Studio
-I've added some debug messages in HandleJoinLobby() of MasterClientPeer.cs and in Initialize() of MasterApplication.cs
-I've set
-I've added the appropriate logger nodes as well for each of the classes mentioned above
-I've been able to run the LoadBalancing project in VS
-I've been able to connect to the server launched in VS with a client (in Unity).
-I've been able to see logs in the VS console. Most of them begin with:
But I can't see any of my logs.
So I'm either missing something in the logging configuration or the code in HandleJoinLobby and Initialize is not being executed when a player connects to the server a creates a room.
Is there anything obvious that I'm doing wrong?
Thanks a lot!
I'm trying to extend the LoadBalancing app but I first need to understand its execution flow. I've tried to add my own debug messages but I can't see them in the VS console.
Here's what I've done:
-I've opened the photon-sdk/src-server/LoadBalancing/LoadBalancing.sln project in Visual Studio
-I've added some debug messages in HandleJoinLobby() of MasterClientPeer.cs and in Initialize() of MasterApplication.cs
-I've set
<log4net debug="true">
in log4net.config.-I've added the appropriate logger nodes as well for each of the classes mentioned above
<logger name="Photon.LoadBalancing.MasterServer.MasterApplication"> <level value="DEBUG" /> <appender-ref ref="ConsoleAppender" /> </logger> <logger name="Photon.LoadBalancing.MasterServer.MasterClientPeer"> <level value="DEBUG" /> <appender-ref ref="ConsoleAppender" /> </logger>- I've replaced all instances of
<level value="INFO" />
by <level value="DEBUG" />
-I've been able to run the LoadBalancing project in VS
-I've been able to connect to the server launched in VS with a client (in Unity).
-I've been able to see logs in the VS console. Most of them begin with:
'PhotonSocketServer.exe' (CLR v4.0.30319: DefaultDomain) : loaded
log4net: Logger
log4net: Converter
log4net: Assembly
or The thread 0xxxx has exited with code x (0xxxx)
log4net: Logger
log4net: Converter
log4net: Assembly
or The thread 0xxxx has exited with code x (0xxxx)
But I can't see any of my logs.
So I'm either missing something in the logging configuration or the code in HandleJoinLobby and Initialize is not being executed when a player connects to the server a creates a room.
Is there anything obvious that I'm doing wrong?
Thanks a lot!
0
Comments
-
Hi @BlastOff,
Thank you for choosing Photon!
What log4net.config files did you change?
The LoadBalancing application one:
source:
- "src-server\Loadbalancing\LoadBalancing\log4net.config"
deployed:
- "deploy\Loadbalancing\GameServer\bin\log4net.config"
- "deploy\Loadbalancing\Master\bin\log4net.config"
Photon Socket Server one:
- "deploy\bin_WinXX\Photon.local.log4net"
I don't think you need to add a child nodeif the already has it.
Log to files to check; Did you?0