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.

Log in einen File speichern

Empfohlene Antworten

Hallo Leute, ich hab die Aufgabe bekommen, bei einer Webapplikation die log4j Logger in ein externes File schreiben zu lassen und hab keine Ahnung wie ich das machen soll.

Kennt jemand ein gutes Tutorial oder hat jemand eine IDee wie es gehen könnte

Du musst in der log4j.conf nur ein paar s.g. appender eintragen, die Deinen Wünschen entsprechen:


rootCategory = INFO, C1

# die Appenders muessen in der rootCategory bzw. in catogries eingetragen werden

appender = {

	C1 = org.apache.log4j.DailyRollingFileAppender

	C1.layout = org.apache.log4j.PatternLayout

	#C1.layout.ConversionPattern=%d [%t] %-5p %c(%F:%L) - %m%n

	C1.layout.ConversionPattern = %d ; [%t] ; %c.%M ; %-5p ; %m%n

	C1.File = ../log/default.log

}

hab es hinbekommen das jboss mir das ganze in ein neuex log schreibt. aber jez hab ich das problem, da jboss ein eigenständiges log verhalten hat, der alles in das externe logfile geschrieben wird, will mir jez das log level nur für dieses einzige file einstellen und probier schon ne weile rum aber nichts klappt

hab es hinbekommen das jboss mir das ganze in ein neuex log schreibt. aber jez hab ich das problem, da jboss ein eigenständiges log verhalten hat, der alles in das externe logfile geschrieben wird, will mir jez das log level nur für dieses einzige file einstellen und probier schon ne weile rum aber nichts klappt
Hast du schon in der JBoss Dokumentation den Abschnitt über Logging und ClassLoading (was direkt zusammenhängt) gelesen? Wenn nein: Machen!

habs gelesen und den fehler gefunden und behoben. danke an alle

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.