comparison dwt/browser/Mozilla.d @ 361:4bffbf81e2d6

redirect direct prints to DwtLogger
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 21:00:06 +0100
parents 8ebacc5c07dc
children
comparison
equal deleted inserted replaced
360:ee1dd551f5b1 361:4bffbf81e2d6
13 module dwt.browser.Mozilla; 13 module dwt.browser.Mozilla;
14 14
15 import dwt.dwthelper.utils; 15 import dwt.dwthelper.utils;
16 16
17 import tango.text.locale.Core; 17 import tango.text.locale.Core;
18 import tango.io.Stdout;
19 import tango.text.convert.Format; 18 import tango.text.convert.Format;
20 import tango.io.Console; 19 import tango.io.Console;
21 import tango.sys.Environment; 20 import tango.sys.Environment;
22 import tango.stdc.string; 21 import tango.stdc.string;
23 22
1440 error ( code, "NOT GIVEN", 0 ); 1439 error ( code, "NOT GIVEN", 0 );
1441 } 1440 }
1442 1441
1443 extern(D) 1442 extern(D)
1444 static String error (int code, char[] file, int line) { 1443 static String error (int code, char[] file, int line) {
1445 Stdout ("File: ")(file)(" Line: ")(line).newline; 1444 getDwtLogger().info( "File: {} Line: {}", file, line);
1446 throw new DWTError ("XPCOM error " ~ Integer.toString(code)); //$NON-NLS-1$ 1445 throw new DWTError ("XPCOM error " ~ Integer.toString(code)); //$NON-NLS-1$
1447 } 1446 }
1448 1447
1449 extern(D) 1448 extern(D)
1450 void onDispose (Display display) { 1449 void onDispose (Display display) {