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.

log4Net Eintrag Parsen

Empfohlene Antworten

Hallo,

Meine Hauptfrage lautet:

Existiert die Möglichkeit bei log4net eine Zeile wieder zurück in LoggingEventData zu Parsen!?

Okay nun mal von Vorne:

Ich lese einen Eintrag aus einer log Datei aus. Die log Datei wurde erstellt mit log4net und folgendem Patternlayout:

<conversionPattern value="[%-5level] [#%-10property{MsgID}] %- %date %- %message%newline"/>

z.B. lese ich nun aus der log Datei folgende Zeile aus:

[iNFO ] [#LOG_G01] 2010-03-31 14:31:18,135 BLA_BLA_da_kommt_der_text

nun da ich weiß wie das patternlayout dieser zeile ist möchte ich einen Parser aufrufen welcher mir aus dieser Zeile wieder ein LoggingEventData objekt zurückliefert!

bzw. ich möchte wieder auf meine property,message,level,datetime informationen welche ja in dieser zeile enthalten sind, zugreifen können.

Ist das bereits mit log4net möglich oder muss ich mir hier selber einen Parser schreiben?

Besten Dank für eure Hilfe

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.