Willkommen

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

Log4Net Configuration without XML in VB.NET

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())

Wissenswertes...

Wussten Sie schon, dass

  • mit meinen Anwendungen die Kalkulation und Abrechnung in Höhe von fast einhundert Millionen Euro pro Jahr durchgeführt wird?
  • mehr als eintausend Benutzer 24 Stunden am Tag, 7 Tage die Woche meine Produkte verwenden?

Vortrag über Optimierung von Wirtschaftsdiensten

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:

Internationalisation (i18n) of PHP/Smarty applications

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:

  • Strings, which should be translated, have @@-tags
  • The translation files are separate and can easily be adapted
  • The translation function can also be called internally by php

//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)) {

Foto Tobias Schittkowski

Foto Tobias Schittkowski

Neues Homepagedesign

Die Homepage wurde auf Drupal umgezogen...

Inhalt abgleichen