Willkommen auf der Homepage von Dr.-Ing. Tobias Schittkowski
Dienstleistung: Individuelle Softwareerstellung (siehe auch www.esf-software.de)
Email: tobias@schittkowski.de
Sie suchen die Homepage von Prof. Dr. Klaus Schittkowski?
Schauen Sie doch mal hier oder schreiben Sie ihm: klaus.schittkowski@uni-bayreuth.de
I want to present my code for configuring the excellent log4net logging system without the help of xml-files.
The code uses three Appenders, the database logging is done to a Postgres-DB using the free Devart Posgres library. I use the common property "Commandline" to log the command line parameters additionally.
Imports log4net Imports log4net.Appender Imports log4net.Repository Imports log4net.Repository.Hierarchy Public Class clsLoggerConfiguration Public Shared Sub initLogging() Dim l As log4net.Repository.Hierarchy.Logger Dim s As String Try s = String.Join(";", Environment.GetCommandLineArgs) log4net.GlobalContext.Properties.Item("Commandline") = s l = CType(LogManager.GetRepository, Hierarchy).Root l.AddAppender(myGetColoredConsoleAppender()) l.AddAppender(myGetRollingFileAppender()) l.AddAppender(myGetAdoNetAppender())
Wussten Sie schon, dass
Die Folien zu meinem Vortrag "Optimierung von Wirtschaftsdiensten in Krankenhäusern" am 04.07.2009 an der Uni Bayreuth im Rahmen der Vorlesung Krankenhausinformationssysteme sind jetzt online in Slideshare verfügbar:
I want to present a way in which it is possible to have multiple language versions of a php application which uses the Smarty (http://smarty.php.net) template engine. I give lots of credit to André Rabold (http://smarty.incutio.com/?page=SmartyMultilanguageSupport).
Goal:
//array which holds the tokens is created: $i18n_tokens = array(); //First, an outputfilter for smarty has to be registered after the creation of the Smarty-class: $smarty = new Smarty; $smarty->register_outputfilter("i18n_substitute_text"); function i18n_get_language() // language which is selected by user (defined in the browser settings) { $lang_variable = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); if (empty($lang_variable)) {