aboutsummaryrefslogtreecommitdiff
path: root/src/tests/logger.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-29 01:59:26 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-29 01:59:26 +0000
commit60bac0c9f558ab34c70f099db923204a84d51ffc (patch)
tree09e04f2112aeffa214bce94519b1c959f0d503fc /src/tests/logger.cpp
parentec8ed8b4b44c7b039e87faaa50bb4d503393d336 (diff)
downloadlibbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.gz
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.bz2
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.xz
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.zip
The plugger was dying on a HashException it should have caught, and the Logger
now allows you to include extra printf formatting in your fields just like the docs say you can.
Diffstat (limited to '')
-rw-r--r--src/tests/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/logger.cpp b/src/tests/logger.cpp
index a271443..290f479 100644
--- a/src/tests/logger.cpp
+++ b/src/tests/logger.cpp
@@ -19,7 +19,7 @@ class Thing
19int main() 19int main()
20{ 20{
21 setLogLevel( 4 ); 21 setLogLevel( 4 );
22 setLogFormat("%L: %y-%m-%d %h:%M:%s %f:%l:%F: %t"); 22 setLogFormat("%L: %y-%02m-%02d %h:%02M:%02s %f:%l:%F: %t");
23 lineLog( 5, "Hey, error: %s", strerror( errno ) ); 23 lineLog( 5, "Hey, error: %s", strerror( errno ) );
24 24
25 Thing gh; 25 Thing gh;