Skip to content

Commit 34b6d24

Browse files
author
moberacker
committed
Fix issue #9 "DEFAULT_MAX_FIELD_NAME_LENGTH should default to lower than 500" decrease DEFAULT_MAX_FIELD_NAME_LENGTH to 100. And fix issue with logging of formatted message strings e.g. with Log.InfoFormat("this is a {0}", "text"). Fix of issue #12 "Application Output is too chatty". Add new property disableAnonymousPropsPrefix (true/false default is false) to disable the MiscMessageFieldName (default is MiscMsg) as prefix in case of logging with anonymous types
1 parent 9b7effa commit 34b6d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace Log4ALATest
6868
//Log message as json string ...the json properties will then be mapped to Azure Log Analytic properties/columns.
6969
for (int i = 0; i < 10; i++)
7070
{
71-
alaLogger3.Info($"{\"id\":\"log-{i}\", \"message\":\"test-{i}\"}");
71+
alaLogger3.Info($"{{\"id\":\"log-{i}\", \"message\":\"test-{i}\"}}");
7272
}
7373

7474
System.Console.WriteLine("done4");

0 commit comments

Comments
 (0)