Skip to content

Commit c1f7d85

Browse files
authored
Merge pull request #576 from ckadluba/540-level-column-length-autocreate
Fixed issue #540
2 parents d1c4f21 + 5385cef commit c1f7d85

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ trim_trailing_whitespace = true
99
[*.{csproj,json,config,yml}]
1010
indent_size = 2
1111

12-
[*.sh]
13-
end_of_line = lf
14-
1512
[*.{cmd,bat}]
1613
end_of_line = crlf
1714

@@ -43,7 +40,6 @@ csharp_space_between_method_call_name_and_opening_parenthesis = false
4340
csharp_space_between_method_call_parameter_list_parentheses = false
4441
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
4542
csharp_space_between_method_declaration_parameter_list_parentheses = false
46-
csharp_space_between_parentheses = false
4743
csharp_style_conditional_delegate_call = true:suggestion
4844
csharp_style_expression_bodied_accessors = true:silent
4945
csharp_style_expression_bodied_constructors = false:silent

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ CREATE TABLE [Logs] (
187187
[Id] int IDENTITY(1,1) NOT NULL,
188188
[Message] nvarchar(max) NULL,
189189
[MessageTemplate] nvarchar(max) NULL,
190-
[Level] nvarchar(128) NULL,
190+
[Level] nvarchar(max) NULL,
191191
[TimeStamp] datetime NOT NULL,
192192
[Exception] nvarchar(max) NULL,
193193
[Properties] nvarchar(max) NULL
@@ -468,7 +468,7 @@ If `DataLength` is set to a value different to -1 longer text will be truncated.
468468

469469
### Level
470470

471-
This column stores the event level (Error, Information, etc.). For backwards-compatibility reasons it defaults to a length of 128 characters, but 12 characters is recommended. Alternately, the `StoreAsEnum` property can be set to `true` which causes the underlying level enum integer value to be stored as a SQL `tinyint` column. The `DataType` property can only be set to `nvarchar` or `tinyint`. Setting the `DataType` to `tinyint` is identical to setting `StoreAsEnum` to `true`.
471+
This column stores the event level (Error, Information, etc.). For backwards-compatibility reasons it defaults to a length of `nvarchar(max)` characters, but 12 characters is recommended. Alternately, the `StoreAsEnum` property can be set to `true` which causes the underlying level enum integer value to be stored as a SQL `tinyint` column. The `DataType` property can only be set to `nvarchar` or `tinyint`. Setting the `DataType` to `tinyint` is identical to setting `StoreAsEnum` to `true`.
472472

473473
### TimeStamp
474474

0 commit comments

Comments
 (0)