Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu. Diese Seite zeigt lediglich nicht-personalisierte Werbung an, um der neuen EU-Datenschutzgrundverordnung gerecht zu werden.
Translate
Mittwoch, 5. August 2020
movie2k.to: Kryptowährungen im Wert von 25 Millionen EUR sichergestellt
https://tarnkappe.info/movie2k-to-kryptowaehrungen-im-wert-von-25-millionen-eur-sichergestellt/
Blackwire.to: Fraud-Forum mit Bezahlschranke, geht das?
https://tarnkappe.info/blackwire-to-fraud-forum-mit-bezahlschranke-geht-das/
Samstag, 1. August 2020
Donnerstag, 30. Juli 2020
Mittwoch, 29. Juli 2020
Montag, 27. Juli 2020
Samstag, 25. Juli 2020
Donnerstag, 23. Juli 2020
Mittwoch, 22. Juli 2020
Programmiersprache: API-Keys für Rust-Pakete auf crates.io zurückgezogen
https://www.heise.de/news/Programmiersprache-API-Keys-fuer-Rust-Pakete-auf-crates-io-zurueckgezogen-4845152.html
Jetzt patchen! Exploit-Code für kritische SAP-Lücke aufgetaucht
https://www.heise.de/security/meldung/Jetzt-patchen-Exploit-Code-fuer-kritische-SAP-Luecke-aufgetaucht-4845049.html
Online-Workshop: Linux-Server absichern
https://www.heise.de/news/Online-Workshop-Linux-Server-absichern-4842378.html
Tails 4.8: Neue Version des Live-Systems bringt viele Security-Fixes mit
https://www.heise.de/news/Tails-4-8-Neue-Version-des-Live-Systems-bringt-viele-Security-Fixes-mit-4835417.html
Donnerstag, 2. Juli 2020
Dienstag, 30. Juni 2020
Sonntag, 28. Juni 2020
Sonntag, 21. Juni 2020
Serienjunkies.io lockt seine Besucher in die Abofalle!
https://tarnkappe.info/serienjunkies-io-lockt-seine-besucher-in-die-abofalle/
Dienstag, 16. Juni 2020
Freitag, 12. Juni 2020
Dienstag, 9. Juni 2020
Json.Net / Newtonsoft.Json debugging with writer to Serilog
A simple trace writer for Newtonsoft.Json serialization / deserialization debugging
and logging to Serilog.
Link: https://gist.github.com/SeppPenner/1968bbd4a47055471a135bdfbc58ac2b
Code:
| // <copyright file="SerilogTraceWriter.cs" company="Hämmer Electronics"> |
| // Copyright (c) 2020 All rights reserved. |
| // </copyright> |
| // <summary> |
| // A custom trace writer to write serialization information for Newtonsoft.Json to Serilog. |
| // </summary> |
| // -------------------------------------------------------------------------------------------------------------------- |
|
|
| namespace Data.Serialization |
| { |
| using System; |
| using System.Diagnostics; |
| using System.Diagnostics.CodeAnalysis; |
|
|
| using Newtonsoft.Json.Serialization; |
|
|
| using Serilog; |
|
|
| /// <summary> |
| /// A custom trace writer to write serialization information for Newtonsoft.Json to Serilog. |
| /// </summary> |
| [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed. Suppression is OK here.")] |
| public class SerilogTraceWriter : ITraceWriter |
| { |
| /// <summary> |
| /// The logger. |
| /// </summary> |
| private static readonly ILogger Logger = Log.ForContext<SerilogTraceWriter>(); |
|
|
| /// <inheritdoc cref="ITraceWriter"/> |
| /// <summary> |
| /// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer. |
| /// For example a filter level of <see cref="TraceLevel.Info"/> will exclude <see cref="TraceLevel.Verbose"/> messages and include <see cref="TraceLevel.Info"/>, |
| /// <see cref="TraceLevel.Warning"/> and <see cref="TraceLevel.Error"/> messages. |
| /// </summary> |
| /// <value>The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.</value> |
| /// <seealso cref="ITraceWriter"/> |
| public TraceLevel LevelFilter => TraceLevel.Verbose; |
|
|
| /// <inheritdoc cref="ITraceWriter"/> |
| /// <summary> |
| /// Writes the specified trace level, message and optional exception. |
| /// </summary> |
| /// <param name="level">The <see cref="TraceLevel"/> at which to write this trace.</param> |
| /// <param name="message">The trace message.</param> |
| /// <param name="ex">The trace exception. This parameter is optional.</param> |
| /// <seealso cref="ITraceWriter"/> |
| public void Trace(TraceLevel level, string message, Exception ex) |
| { |
| // ReSharper disable once SwitchStatementHandlesSomeKnownEnumValuesWithDefault |
| switch (level) |
| { |
| case TraceLevel.Info: Logger.Information("Message: {message}, Exception: {exception}.", message, ex); |
| break; |
| case TraceLevel.Warning: Logger.Warning("Message: {message}, Exception: {exception}.", message, ex); |
| break; |
| case TraceLevel.Verbose: Logger.Verbose("Message: {message}, Exception: {exception}.", message, ex); |
| break; |
| case TraceLevel.Error: Logger.Error("Message: {message}, Exception: {exception}.", message, ex); |
| break; |
| case TraceLevel.Off: break; |
| } |
| } |
| } |
| // -------------------------------------------------------------------------------------------------------------------- |
Abonnieren
Posts (Atom)