Page 1 of 1
php log functions
Posted: 06 April 2013, 02:08
by ddyer
where does self::trace("msg"); go?
what function can I use to add entries to the game server error log.
Re: php log functions
Posted: 06 April 2013, 12:07
by Rudolf
you go in admin/studio then you've got logs?
Re: php log functions
Posted: 06 April 2013, 18:53
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.
Re: php log functions
Posted: 06 April 2013, 22:56
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?
Re: php log functions
Posted: 07 April 2013, 22:07
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.
Re: php log functions
Posted: 19 May 2013, 21:14
by Een
Update: the four log levels now work properly. Matching logs are displayed in the 'Current table error log' in the 'Studio backoffice'.