PHP logs ?

Game development with Board Game Arena Studio
Post Reply
User avatar
Peyo61
Posts: 8
Joined: 15 March 2014, 20:37

PHP logs ?

Post by Peyo61 »

So I'm struggling with the PHP side of things, and I'm trying to use self::trace/warn/error to figure out the sequence of calls and why my variables do not cooperate.

My game actually does not start, it just blurts the PHP errors in big in-my-face red bars and on the right-hand-side column, then stalls, no display of the interface. I know what it complains about but not why, so I added some logging code to trace the flow of execution and dump key variables...

Only problem is - no idea where the log messages go:
- don't show up as in-my-face error bars
- don't show up on the right-hand-side column
- logs in the game page seem empty

So I need to use some reliable !@##$% logging mechanism. The back-office just mentions logs to be deprecated, and that gameserver and HTTP log now appear in red bars. They don't in my case (?!).

Any hint ?

Thanks in advance,
Pierre
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: PHP logs ?

Post by Victoria_La »

PHP logs can be found in "BGA unexpected exceptions logs" link at the bottom of the game (severity warn and error). To see other severities switch to
"BGA request&SQL logs". However if games fail before table is created or during initialisation it may not get to the point where it will log anything.

If games does not start at all likely there is syntax error in one of the include files (inc.php).

I started this wiki to record some of troubles I had and possible solutions: http://en.doc.boardgamearena.com/Troubleshooting
Post Reply

Return to “Developers”