Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Log4j Beispiele, Deutsche Doku

Empfohlene Antworten

Hallo Leuts.

Ich will mich mal mit dem Log4j beschäftigen. Ich will versuchen das in mein Projekt mit einzubinden. Was ich darüber gelesen habe war eigentlich ganz positiv.

zumindestens bräuchte ich ein paar Beispiele.

zum Beispiel wo auch in einer Datei geloggt wird. oder in einer XML datei gespeichert.

thx

Ansonsten allen erstmal ein schönes Weekend gewünscht.:marine soll ja sau geiles Wetter werden. schauen wa mal.:cool:

empire

Eine deutsche Doku zu log4j kenne ich bisher noch nicht.

Aber in der Doku zu log4j selbst ist alles wunderbar beschrieben - auch mit Beispielen.

(Und daran, dass die Dokus meistens in englisch sind, musst du dich einfach gewöhnen - das wird dich noch öfters treffen. Vor allem bei relativ neuen Technologien/Produkten.)

Snowghost

Juten Morchen

Also die englisch Doku hab ich nun durch gerackert. bzw was ich davon verstanden habe.

Ich hab mal die Default Configurationen von Log4j mit in einer txt. Datei drucken lassen.

Aber ich krieg es nicht gebacken, den Configurator mit dieser Datei zu "laden".



try {
PropertyConfigurator.configure ( "D:\\JAVA\\Test\\Log4J\\log4jconfig1.txt");

}catch(Exception e) {
System.out.println(e.getMessage());
}


[/PHP]

und krieg ich diesen Fehler:

[PHP]
log4j:WARN Failed to set property [contentType] to value "text/plain".
No setter for property [contentType].

empire

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.