diff dwt/DWTError.d @ 361:4bffbf81e2d6

redirect direct prints to DwtLogger
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 21:00:06 +0100
parents c0d810de7093
children
line wrap: on
line diff
--- a/dwt/DWTError.d	Fri Mar 20 20:30:32 2009 +0100
+++ b/dwt/DWTError.d	Fri Mar 20 21:00:06 2009 +0100
@@ -17,7 +17,6 @@
 import dwt.DWT;
 
 import tango.core.Exception;
-import tango.io.Stdout;
 
 /**
  * This error is thrown whenever an unrecoverable error
@@ -150,14 +149,14 @@
  * </p>
  */
 public void printStackTrace () {
-    Stderr.formatln( "stacktrace follows (if feature compiled in)" );
+    getDwtLogger().error( "stacktrace follows (if feature compiled in)" );
     foreach( msg; info ){
-        Stderr.formatln( "{}", msg );
+        getDwtLogger().error( "{}", msg );
     }
     if ( throwable !is null) {
-        Stderr.formatln ("*** Stack trace of contained error ***"); //$NON-NLS-1$
+        getDwtLogger().error ("*** Stack trace of contained error ***"); //$NON-NLS-1$
         foreach( msg; throwable.info ){
-            Stderr.formatln( "{}", msg );
+            getDwtLogger().error( "{}", msg );
         }
     }
 }