-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
713 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Serilog.Sinks.PostgreSql | ||
{ | ||
public class ColumnOptions | ||
{ | ||
public static IDictionary<string, ColumnWriterBase> Default => new Dictionary<string, ColumnWriterBase> | ||
{ | ||
{DefaultColumnNames.RenderedMesssage, new RenderedMessageColumnWriter()}, | ||
{DefaultColumnNames.MessageTemplate, new MessageTemplateColumnWriter()}, | ||
{DefaultColumnNames.Level, new LevelColumnWriter()}, | ||
{DefaultColumnNames.Exception, new ExceptionColumnWriter()}, | ||
{DefaultColumnNames.Properties, new PropertiesColumnWriter()}, | ||
{DefaultColumnNames.CreatedAt, new TimestampColumnWriter()} | ||
}; | ||
} | ||
|
||
public static class DefaultColumnNames | ||
{ | ||
public const string RenderedMesssage = "message"; | ||
public const string MessageTemplate = "message_template"; | ||
public const string Level = "level"; | ||
public const string Exception = "exception"; | ||
public const string Properties = "properties"; | ||
public const string CreatedAt = "created_at"; | ||
} | ||
} |
Oops, something went wrong.