Skip to content

Commit e2876a2

Browse files
authored
Merge pull request #32 from akesseler/network-graylog
Network Logger and Graylog
2 parents 5712fcd + d65d164 commit e2876a2

312 files changed

Lines changed: 13199 additions & 513 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# MIT License
33

4-
Copyright (c) 2022 plexdata.de
4+
Copyright (c) 2023 plexdata.de
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

code/hlp/Plexdata.LogWriter.help.shfbproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Composite\bin\Release\netstandard2.0\Plexdata.LogWriter.Composite.xml" />
3535
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Mail\bin\Release\netstandard2.0\Plexdata.LogWriter.Mail.dll" />
3636
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Mail\bin\Release\netstandard2.0\Plexdata.LogWriter.Mail.xml" />
37+
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Network\bin\Release\netstandard2.0\Plexdata.LogWriter.Network.dll" />
38+
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Network\bin\Release\netstandard2.0\Plexdata.LogWriter.Network.xml" />
3739
</DocumentationSources>
3840
<HelpFileFormat>HtmlHelp1</HelpFileFormat>
3941
<SyntaxFilters>C#</SyntaxFilters>
@@ -44,7 +46,7 @@
4446
<IndentHtml>False</IndentHtml>
4547
<BuildAssemblerVerbosity>OnlyWarningsAndErrors</BuildAssemblerVerbosity>
4648
<HelpTitle>Plexdata Logging Writer</HelpTitle>
47-
<HelpFileVersion>1.0.6.1</HelpFileVersion>
49+
<HelpFileVersion>1.0.7.1</HelpFileVersion>
4850
<NamingMethod>Guid</NamingMethod>
4951
<ContentPlacement>AboveNamespaces</ContentPlacement>
5052
<RootNamespaceContainer>True</RootNamespaceContainer>
@@ -92,7 +94,7 @@
9294
<Argument Key="baseSourceCodeUrl" Value="" />
9395
<Argument Key="requestExampleUrl" Value="" />
9496
</TransformComponentArguments>
95-
<CopyrightText>Copyright &amp;#169%3b 2022 - plexdata.de</CopyrightText>
97+
<CopyrightText>Copyright &amp;#169%3b 2023 - plexdata.de</CopyrightText>
9698
<CopyrightHref>http://www.plexdata.de/</CopyrightHref>
9799
<NamespaceSummaries>
98100
</NamespaceSummaries>

code/hlp/Plexdata.LogWriter.wiki.shfbproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Composite\bin\Release\netstandard2.0\Plexdata.LogWriter.Composite.xml" />
3535
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Mail\bin\Release\netstandard2.0\Plexdata.LogWriter.Mail.dll" />
3636
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Mail\bin\Release\netstandard2.0\Plexdata.LogWriter.Mail.xml" />
37+
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Network\bin\Release\netstandard2.0\Plexdata.LogWriter.Network.dll" />
38+
<DocumentationSource sourceFile="..\src\Plexdata.LogWriter.Network\bin\Release\netstandard2.0\Plexdata.LogWriter.Network.xml" />
3739
</DocumentationSources>
3840
<HelpFileFormat>Markdown</HelpFileFormat>
3941
<SyntaxFilters>C#</SyntaxFilters>
@@ -44,7 +46,7 @@
4446
<IndentHtml>False</IndentHtml>
4547
<BuildAssemblerVerbosity>OnlyWarningsAndErrors</BuildAssemblerVerbosity>
4648
<HelpTitle>Plexdata Logging Writer</HelpTitle>
47-
<HelpFileVersion>1.0.6.1</HelpFileVersion>
49+
<HelpFileVersion>1.0.7.1</HelpFileVersion>
4850
<NamingMethod>Guid</NamingMethod>
4951
<ContentPlacement>AboveNamespaces</ContentPlacement>
5052
<RootNamespaceContainer>True</RootNamespaceContainer>
@@ -92,7 +94,7 @@
9294
<Argument Key="baseSourceCodeUrl" Value="" />
9395
<Argument Key="requestExampleUrl" Value="" />
9496
</TransformComponentArguments>
95-
<CopyrightText>Copyright &amp;#169%3b 2022 - plexdata.de</CopyrightText>
97+
<CopyrightText>Copyright &amp;#169%3b 2023 - plexdata.de</CopyrightText>
9698
<CopyrightHref>http://www.plexdata.de/</CopyrightHref>
9799
<NamespaceSummaries>
98100
</NamespaceSummaries>

code/src/.editorconfig

Lines changed: 103 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,93 +23,117 @@ dotnet_sort_system_directives_first = false
2323
file_header_template = unset
2424

2525
# this. and Me. preferences
26-
dotnet_style_qualification_for_event = true:suggestion
27-
dotnet_style_qualification_for_field = true:suggestion
28-
dotnet_style_qualification_for_method = true:suggestion
29-
dotnet_style_qualification_for_property = true:suggestion
26+
dotnet_style_qualification_for_event = true:warning
27+
dotnet_style_qualification_for_field = true
28+
dotnet_style_qualification_for_method = true:warning
29+
dotnet_style_qualification_for_property = true:warning
3030

3131
# Language keywords vs BCL types preferences
3232
dotnet_style_predefined_type_for_locals_parameters_members = false:suggestion
3333
dotnet_style_predefined_type_for_member_access = false:suggestion
3434

3535
# Parentheses preferences
36-
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
37-
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
38-
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
39-
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
36+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
37+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
38+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary
39+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
4040

4141
# Modifier preferences
42-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
42+
dotnet_style_require_accessibility_modifiers = for_non_interface_members
4343

4444
# Expression-level preferences
45-
dotnet_style_coalesce_expression = true:suggestion
46-
dotnet_style_collection_initializer = true:suggestion
47-
dotnet_style_explicit_tuple_names = true:suggestion
48-
dotnet_style_null_propagation = true:suggestion
49-
dotnet_style_object_initializer = true:suggestion
45+
dotnet_style_coalesce_expression = true
46+
dotnet_style_collection_initializer = true
47+
dotnet_style_explicit_tuple_names = true
48+
dotnet_style_namespace_match_folder = true
49+
dotnet_style_null_propagation = true
50+
dotnet_style_object_initializer = true
5051
dotnet_style_operator_placement_when_wrapping = beginning_of_line
51-
dotnet_style_prefer_auto_properties = true:silent
52-
dotnet_style_prefer_compound_assignment = true:suggestion
53-
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
54-
dotnet_style_prefer_conditional_expression_over_return = true:silent
55-
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
56-
dotnet_style_prefer_inferred_tuple_names = true:suggestion
57-
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
58-
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
59-
dotnet_style_prefer_simplified_interpolation = true:suggestion
52+
dotnet_style_prefer_auto_properties = true:suggestion
53+
dotnet_style_prefer_compound_assignment = true
54+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
55+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
56+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
57+
dotnet_style_prefer_inferred_anonymous_type_member_names = true
58+
dotnet_style_prefer_inferred_tuple_names = true
59+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
60+
dotnet_style_prefer_simplified_boolean_expressions = true
61+
dotnet_style_prefer_simplified_interpolation = true
6062

6163
# Field preferences
62-
dotnet_style_readonly_field = true:suggestion
64+
dotnet_style_readonly_field = true
6365

6466
# Parameter preferences
65-
dotnet_code_quality_unused_parameters = all:suggestion
67+
dotnet_code_quality_unused_parameters = all
68+
69+
# Suppression preferences
70+
dotnet_remove_unnecessary_suppression_exclusions = none
71+
72+
# New line preferences
73+
dotnet_style_allow_multiple_blank_lines_experimental = true
74+
dotnet_style_allow_statement_immediately_after_block_experimental = true
6675

6776
#### C# Coding Conventions ####
6877

6978
# var preferences
70-
csharp_style_var_elsewhere = false:silent
71-
csharp_style_var_for_built_in_types = false:silent
72-
csharp_style_var_when_type_is_apparent = false:silent
79+
csharp_style_var_elsewhere = false:suggestion
80+
csharp_style_var_for_built_in_types = false:suggestion
81+
csharp_style_var_when_type_is_apparent = false:suggestion
7382

7483
# Expression-bodied members
75-
csharp_style_expression_bodied_accessors = true:silent
84+
csharp_style_expression_bodied_accessors = false:silent
7685
csharp_style_expression_bodied_constructors = false:silent
77-
csharp_style_expression_bodied_indexers = true:silent
78-
csharp_style_expression_bodied_lambdas = true:silent
86+
csharp_style_expression_bodied_indexers = false:silent
87+
csharp_style_expression_bodied_lambdas = false:silent
7988
csharp_style_expression_bodied_local_functions = false:silent
8089
csharp_style_expression_bodied_methods = false:silent
8190
csharp_style_expression_bodied_operators = false:silent
82-
csharp_style_expression_bodied_properties = true:silent
91+
csharp_style_expression_bodied_properties = false:silent
8392

8493
# Pattern matching preferences
8594
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
8695
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
87-
csharp_style_prefer_switch_expression = true:suggestion
96+
csharp_style_prefer_extended_property_pattern = true:suggestion
97+
csharp_style_prefer_not_pattern = true:suggestion
98+
csharp_style_prefer_pattern_matching = true:silent
99+
csharp_style_prefer_switch_expression = false:warning
88100

89101
# Null-checking preferences
90102
csharp_style_conditional_delegate_call = true:suggestion
91103

92104
# Modifier preferences
93-
csharp_prefer_static_local_function = true:suggestion
94-
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
105+
csharp_prefer_static_local_function = false:suggestion
106+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
95107

96108
# Code-block preferences
97-
csharp_prefer_braces = true:silent
98-
csharp_prefer_simple_using_statement = true:suggestion
109+
csharp_prefer_braces = true:suggestion
110+
csharp_prefer_simple_using_statement = false:suggestion
111+
csharp_style_namespace_declarations = block_scoped:silent
112+
csharp_style_prefer_method_group_conversion = true:silent
113+
csharp_style_prefer_top_level_statements = true:silent
99114

100115
# Expression-level preferences
101-
csharp_prefer_simple_default_expression = true:suggestion
116+
csharp_prefer_simple_default_expression = false:suggestion
102117
csharp_style_deconstructed_variable_declaration = true:suggestion
118+
csharp_style_implicit_object_creation_when_type_is_apparent = false:suggestion
103119
csharp_style_inlined_variable_declaration = true:suggestion
104-
csharp_style_pattern_local_over_anonymous_function = true:suggestion
105-
csharp_style_prefer_index_operator = true:suggestion
106-
csharp_style_prefer_range_operator = true:suggestion
120+
csharp_style_prefer_index_operator = false:suggestion
121+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
122+
csharp_style_prefer_null_check_over_type_check = true:suggestion
123+
csharp_style_prefer_range_operator = false:suggestion
124+
csharp_style_prefer_tuple_swap = true:suggestion
125+
csharp_style_prefer_utf8_string_literals = true:suggestion
107126
csharp_style_throw_expression = true:suggestion
108-
csharp_style_unused_value_assignment_preference = false:silent
127+
csharp_style_unused_value_assignment_preference = discard_variable:silent
109128
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
110129

111130
# 'using' directive preferences
112-
csharp_using_directive_placement = outside_namespace:silent
131+
csharp_using_directive_placement = outside_namespace:suggestion
132+
133+
# New line preferences
134+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:silent
135+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
136+
csharp_style_allow_embedded_statements_on_same_line_experimental = false:silent
113137

114138
#### C# Formatting Rules ####
115139

@@ -199,3 +223,39 @@ dotnet_naming_style.begins_with_i.required_prefix = I
199223
dotnet_naming_style.begins_with_i.required_suffix =
200224
dotnet_naming_style.begins_with_i.word_separator =
201225
dotnet_naming_style.begins_with_i.capitalization = pascal_case
226+
227+
[*.{cs,vb}]
228+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
229+
tab_width = 4
230+
indent_size = 4
231+
end_of_line = crlf
232+
dotnet_style_coalesce_expression = true:suggestion
233+
dotnet_style_null_propagation = true:suggestion
234+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
235+
dotnet_style_prefer_auto_properties = true:suggestion
236+
dotnet_style_object_initializer = true:suggestion
237+
dotnet_style_collection_initializer = true:suggestion
238+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
239+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
240+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
241+
dotnet_style_explicit_tuple_names = true:suggestion
242+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
243+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
244+
dotnet_style_prefer_compound_assignment = true:suggestion
245+
dotnet_style_prefer_simplified_interpolation = true:suggestion
246+
dotnet_style_namespace_match_folder = true:suggestion
247+
dotnet_style_readonly_field = true:suggestion
248+
dotnet_style_predefined_type_for_locals_parameters_members = false:suggestion
249+
dotnet_style_predefined_type_for_member_access = false:suggestion
250+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
251+
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
252+
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
253+
dotnet_code_quality_unused_parameters = all:suggestion
254+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
255+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
256+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
257+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
258+
dotnet_style_qualification_for_field = true:warning
259+
dotnet_style_qualification_for_property = true:warning
260+
dotnet_style_qualification_for_method = true:warning
261+
dotnet_style_qualification_for_event = true:warning

code/src/HISTORY.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11

2-
**1.0.X.Y**
2+
**1.0.7.1**
33
- Usage of package `Plexdata.Utilities.Testing`.
44
- Package updates (NUnit and other).
5-
- Copyright year changed in all files.
65
- Introduction of new logging level `Disaster`.
6+
- Introduction of logging type `GELF` including a proper formatter.
7+
- Adding of project `Plexdata.LogWriter.Network`.
8+
- File `.editorconfig` updated.
9+
- Copyright year changed in all files.
10+
- Version number increased.
711

812
**1.0.6.1**
913
- File `.editorconfig` added.

code/src/Plexdata.LogWriter.Abstraction.Tests/Extensions/LogLevelCriticalExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2022 plexdata.de
4+
* Copyright (c) 2023 plexdata.de
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

code/src/Plexdata.LogWriter.Abstraction.Tests/Extensions/LogLevelDebugExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2022 plexdata.de
4+
* Copyright (c) 2023 plexdata.de
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

code/src/Plexdata.LogWriter.Abstraction.Tests/Extensions/LogLevelDisasterExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2022 plexdata.de
4+
* Copyright (c) 2023 plexdata.de
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

code/src/Plexdata.LogWriter.Abstraction.Tests/Extensions/LogLevelDisplayExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2022 plexdata.de
4+
* Copyright (c) 2023 plexdata.de
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

code/src/Plexdata.LogWriter.Abstraction.Tests/Extensions/LogLevelErrorExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2022 plexdata.de
4+
* Copyright (c) 2023 plexdata.de
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)