Updated Branches: refs/heads/develop 8abee3ad8 -> daf50b467
Added getter for LoggerEvent::$locationInfo This can be used to override the default event's location information. Signed-off-by: Ivan Habunek <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/logging-log4php/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4php/commit/daf50b46 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4php/tree/daf50b46 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4php/diff/daf50b46 Branch: refs/heads/develop Commit: daf50b467f6ee4453c9460850ae62a6dca25dd6c Parents: 8abee3a Author: Ivan Habunek <[email protected]> Authored: Wed Mar 13 22:53:45 2013 +0100 Committer: Ivan Habunek <[email protected]> Committed: Wed Mar 13 22:53:45 2013 +0100 ---------------------------------------------------------------------- src/main/php/LoggerLoggingEvent.php | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/daf50b46/src/main/php/LoggerLoggingEvent.php ---------------------------------------------------------------------- diff --git a/src/main/php/LoggerLoggingEvent.php b/src/main/php/LoggerLoggingEvent.php index 3001924..aa0bae7 100644 --- a/src/main/php/LoggerLoggingEvent.php +++ b/src/main/php/LoggerLoggingEvent.php @@ -194,6 +194,14 @@ class LoggerLoggingEvent { } /** + * Sets the event's location info. Can be used to override the default info. + * @param LoggerLocationInfo $locationInfo + */ + public function setLocationInformation(LoggerLocationInfo $locationInfo) { + $this->locationInfo = $locationInfo; + } + + /** * Return the level of this event. Use this form instead of directly * accessing the {@link $level} field. * @return LoggerLevel
