Hello and thanks, i now get it from the log4j.properties and set it by my programm as log4jLogger.setResourceBundle(getByKeyFromLog4j.properties) by a own class.
In any case, i believe there should be a standard way to configure logging by different languages guided by the selected language. Maybe at times of global village it could be something for the FAQ how to configure/implement straightforward ResourceBundle for the messages to log, which we get by key: id001=my messages (messages_en.properties) id001=meine Meldung (messages_de.properties) Greetings, Hans ----------------- I don't know about that. I do know that the XML format supports more things so you may want to look into that. On 7/13/06, Braumüller, Hans <[EMAIL PROTECTED]> wrote: > Hello, > > excuse, maybe it is not posible to declare/instantiate automatically the > ResourceBundle for my Messages, which i want get by key ? > > I am Looking for something like this : > > log4j.appender.W.layout=com.letaba.bpi.util.BPIWebLayout > > log4j.appender.XML=org.apache.log4j.RollingFileAppender > log4j.appender.XML.Append=true > log4j.appender.XML.MaxFileSize=50KB > log4j.appender.XML.MaxBackupIndex=9 > log4j.appender.XML.File=bpiweb.xml > log4j.appender.XML.layout.LocationInfo=true > log4j.appender.XML.layout=com.letaba.bpi.util.BPIXMLLayout > > #NOW THIS WOULD BE COOL! ------------------------ > log4.ResourceBundle=lib/messages > '----------------------------------------------- > to avoid in my programm: > > log4jLogger.setResourceBundle(messagesResBundle); > > DO You know a weblink where i can find all properties, which i can declare in > the log4j.properties ? > > Thanks for your efforts, > > Hans > > > > > You can give an absolute or relative path in the properties file. > > > > On 7/12/06, Braumüller, Hans <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > is there a way to configure in the log4j.properties where my > > > messages_*.properties lies, > > > which now i have tell by my proramm ? > > > > > > MESSAGES_RESBUNDLE = "lib/messages"; > > > > > -- > James Stauffer > Are you good? Take the test at http://www.livingwaters.com/good/ > Die Optimierung des Working Capitals unterstützt Unternehmen dabei, wettbewerbsfähig zu bleiben. Viele Unternehmen generieren bereits durch aktive Gestaltung der Financial Supply Chain einen echten Mehrwert. Unsere Softwarelösungen helfen Ihnen, das betriebliche Wertschöpfungspotential vollständig auszunutzen! Informieren Sie sich bei unseren Finance Experten: Tel.: +49 (0)40 51 48 08 - 0 Fax: +49 (0)40 51 48 08 - 88 [EMAIL PROTECTED] www.hanseorga.de Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
