You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2013/03/13 22:08:35 UTC
git commit: Added getter for LoggerEvent::$locationInfo
Updated Branches:
refs/heads/master a5bcd955f -> c32ddc130
Added getter for LoggerEvent::$locationInfo
This can be used to override the default event's location information.
Signed-off-by: Ivan Habunek <ih...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/logging-log4php/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4php/commit/c32ddc13
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4php/tree/c32ddc13
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4php/diff/c32ddc13
Branch: refs/heads/master
Commit: c32ddc13001b45aa53b3c515feb46e6fe79766bb
Parents: a5bcd95
Author: Ivan Habunek <ih...@apache.org>
Authored: Wed Mar 13 22:07:30 2013 +0100
Committer: Ivan Habunek <ih...@apache.org>
Committed: Wed Mar 13 22:07:30 2013 +0100
----------------------------------------------------------------------
src/main/php/LoggerLoggingEvent.php | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/c32ddc13/src/main/php/LoggerLoggingEvent.php
----------------------------------------------------------------------
diff --git a/src/main/php/LoggerLoggingEvent.php b/src/main/php/LoggerLoggingEvent.php
index 29ba361..c810220 100644
--- a/src/main/php/LoggerLoggingEvent.php
+++ b/src/main/php/LoggerLoggingEvent.php
@@ -142,10 +142,10 @@ class LoggerLoggingEvent {
* Returns the full qualified classname.
* TODO: PHP does contain namespaces in 5.3. Those should be returned too,
*/
- public function getFullQualifiedClassname() {
- return $this->fqcn;
- }
-
+ public function getFullQualifiedClassname() {
+ return $this->fqcn;
+ }
+
/**
* Set the location information for this logging event. The collected
* information is cached for future use.
@@ -195,6 +195,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