summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Horrigan <dan@dhorrigan.com>2014-03-19 22:36:36 -0400
committerDan Horrigan <dan@dhorrigan.com>2014-03-19 22:36:36 -0400
commit46cdd92a9b4a8443120cc955bf831450cb274813 (patch)
tree19d37bc8eee76581638e6abf2dd3b7b65f1c825e
parentae301cfcab37ad8f1e2d2e2833f09d2477769727 (diff)
downloadKLogger-46cdd92a9b4a8443120cc955bf831450cb274813.zip
KLogger-46cdd92a9b4a8443120cc955bf831450cb274813.tar.gz
KLogger-46cdd92a9b4a8443120cc955bf831450cb274813.tar.bz2
Fixing a formatting bug, and the README1.0.0
-rw-r--r--README.markdown22
-rwxr-xr-xsrc/Logger.php2
2 files changed, 11 insertions, 13 deletions
diff --git a/README.markdown b/README.markdown
index a40de82..b9fa120 100644
--- a/README.markdown
+++ b/README.markdown
@@ -56,18 +56,16 @@ $logger->debug('Got these users from the Database.', $users);
### Output
```
-[2014-03-18 19:28:34.576643] [INFO] Returned a million search results
-[2014-03-18 19:28:34.576750] [ERROR] Oh dear.
-[2014-03-18 19:28:34.576946] [DEBUG] Got these users from the Database.
- array(
- 0 => array(
- 'name' => 'Kenny Katzgrau',
- 'username' => 'katzgrau',
- ),
- 1 => array(
- 'name' => 'Dan Horrigan',
- 'username' => 'dhrrgn',
- ),
+[2014-03-20 3:35:43.762437] [INFO] Returned a million search results
+[2014-03-20 3:35:43.762578] [ERROR] Oh dear.
+[2014-03-20 3:35:43.762795] [DEBUG] Got these users from the Database.
+ 0: array(
+ 'name' => 'Kenny Katzgrau',
+ 'username' => 'katzgrau',
+ )
+ 1: array(
+ 'name' => 'Dan Horrigan',
+ 'username' => 'dhrrgn',
)
```
diff --git a/src/Logger.php b/src/Logger.php
index 7a10775..c558f4c 100755
--- a/src/Logger.php
+++ b/src/Logger.php
@@ -214,7 +214,7 @@ class Logger extends AbstractLogger
), str_replace('array (', 'array(', var_export($value, true)));
$export .= PHP_EOL;
}
- return str_replace('\\\\', '\\', $export);
+ return str_replace(array('\\\\', '\\\''), array('\\', '\''), rtrim($export));
}
/**