Mercurial > projects > dwt-win
diff dwt/internal/win32/OS.d @ 332:1ee938a6e02e
Tango updates, removing trace prints and added prints via Logger
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 01 Feb 2009 19:40:09 +0100 |
parents | 2b8f40a1c515 |
children | f866e80af235 |
line wrap: on
line diff
--- a/dwt/internal/win32/OS.d Tue Jan 27 10:40:55 2009 +0100 +++ b/dwt/internal/win32/OS.d Sun Feb 01 19:40:09 2009 +0100 @@ -27,6 +27,7 @@ import dwt.internal.C; import dwt.internal.Library; +import dwt.dwthelper.utils; import tango.sys.SharedLib : SharedLib; import tango.sys.Common : SysError; static import tango.stdc.stdlib; @@ -38,10 +39,9 @@ import tango.io.File; -import tango.util.log.Trace; import tango.io.Console; void trace(int line ){ - //Trace.formatln( "OS {}", line ); + getDwtLogger.trace( "OS {}", line ); } // declare of Callback functions @@ -100,12 +100,12 @@ if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ *s.symbol = lib.getSymbol( s.name.ptr ); if( s.symbol is null ){ - Trace.formatln( "{}: Symbol '{}' not found", libname, s.name ); + getDwtLogger.error( "{}: Symbol '{}' not found", libname, s.name ); } } } } else { - Trace.formatln( "Could not load the library {}", libname ); + getDwtLogger.error( "Could not load the library {}", libname ); } } @@ -413,7 +413,7 @@ void printError( char[] msg ){ char[] winMsg = SysError.lastMsg(); char[2000] buf; - Trace.formatln("{}: {}", msg, CodePage.from( winMsg, buf ) ); + getDwtLogger.error("{}: {}", msg, CodePage.from( winMsg, buf ) ); } TCHAR[] buffer = new TCHAR[ MAX_PATH ]; buffer[] = 0; @@ -2721,12 +2721,12 @@ if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ *s.symbol = lib.getSymbol( s.name.ptr ); if( *s.symbol is null ){ - Trace.formatln("UxTheme.dll: Symbol '{}' not found", s.name ); + getDwtLogger.error("UxTheme.dll: Symbol '{}' not found", s.name ); } } } } else { - Trace.formatln("Could not load the library UxTheme.dll"); + getDwtLogger.error("Could not load the library UxTheme.dll"); } } //----------------------------------------------------------------------