Skip to content

Instantly share code, notes, and snippets.

@mudrd8mz
Created June 6, 2011 10:16
Show Gist options
  • Save mudrd8mz/1010035 to your computer and use it in GitHub Desktop.
Save mudrd8mz/1010035 to your computer and use it in GitHub Desktop.
diff --git a/backup/util/loggers/file_logger.class.php b/backup/util/loggers/file_logger.class.php
index b183767..9b69932 100644
--- a/backup/util/loggers/file_logger.class.php
+++ b/backup/util/loggers/file_logger.class.php
@@ -69,7 +69,7 @@ class file_logger extends base_logger {
// Protected API starts here
protected function action($message, $level, $options = null) {
- $prefix = $this->get_prefix($level, $options);
+ $prefix = sprintf('%-38s', $this->get_prefix($level, $options));
$depth = isset($options['depth']) ? $options['depth'] : 0;
// Depending of the type (extension of the file), format differently
if (substr($this->fullpath, -5) !== '.html') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment