php log functions

Game development with Board Game Arena Studio
Post Reply
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

php log functions

Post by ddyer »

where does self::trace("msg"); go?

what function can I use to add entries to the game server error log.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: php log functions

Post by Rudolf »

you go in admin/studio then you've got logs?
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

Re: php log functions

Post by ddyer »

the output of "trace" doesn't seem to appear on any of the logs, and
there seems to be no way to explicitly add to any of the logs you can see.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: php log functions

Post by Rudolf »

sometimes i use this.showMessage
for example: this.showMessage("Player_id="+player_id, 'error' );
it appears in a red box.
maybe it's useful for you?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: php log functions

Post by Een »

That's right, self::trace("msg"); and self::debug("msg"); don't seem to work on the studio, whereas self::warn("msg"); and self::error("msg"); log just fine.
This can be a configuration problem or a bug, we'll look into it.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: php log functions

Post by Een »

Update: the four log levels now work properly. Matching logs are displayed in the 'Current table error log' in the 'Studio backoffice'.
Post Reply

Return to “Developers”