Updated encryption file
Added braces
This commit is contained in:
@@ -17,7 +17,6 @@ namespace EonaCat.LogStack.Test.Web
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
await using var logger = LogBuilder.CreateDefault("MyApp");
|
||||
|
||||
logger.Information("Application started");
|
||||
logger.Warning("Low memory warning");
|
||||
logger.Error(new Exception("DIT IS MIJN TEST!"), "Unexpected error occurred");
|
||||
@@ -58,6 +57,8 @@ namespace EonaCat.LogStack.Test.Web
|
||||
logBuilder.WriteToFile(logDirectory, outputFormat: FileOutputFormat.Text);
|
||||
logBuilder.WriteToFile(logDirectory, outputFormat: FileOutputFormat.Json);
|
||||
logBuilder.WriteToFile(logDirectory, outputFormat: FileOutputFormat.Xml);
|
||||
logBuilder.WriteToEncryptedFile(logDirectory, filePrefix: "encrypted", password: "MySecretKey123456");
|
||||
EncryptedFileFlow.DecryptToFile(@"C:\workdir\C#\EonaCat.LogStack\Testers\EonaCat.LogStack.Test.Web\bin\Debug\net8.0\logs\encrypted_EONACAT_20260804.eona", "./logs/decrypted.log", "MySecretKey123456");
|
||||
logBuilder.WriteToTcp("127.0.0.1", 514);
|
||||
//logBuilder.WriteToEncryptedFile("./logs");
|
||||
//logBuilder.WriteDiagnostics();
|
||||
|
||||
Reference in New Issue
Block a user