Skip to content

Commit da08125

Browse files
committed
Fixed issue #540 in README.md
Level column defaults to nvarchar(max) instead of nvarchar(128).
1 parent d1c4f21 commit da08125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)