File tree Expand file tree Collapse file tree 2 files changed +3
-525
lines changed
src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorage Expand file tree Collapse file tree 2 files changed +3
-525
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ public virtual string GeneratePartitionKey(LogEvent logEvent)
2424 }
2525
2626 /// <summary>
27- /// Automatically generates the RowKey using the timestamp
27+ /// Automatically generates the RowKey using the timestamp
2828 /// </summary>
2929 /// <param name="logEvent">the log event</param>
3030 /// <returns>The generated RowKey</returns>
3131 public virtual string GenerateRowKey ( LogEvent logEvent )
3232 {
3333 var utcEventTime = logEvent . Timestamp . UtcDateTime ;
3434
35- // use time based object id to create key
36- return ObjectId . GenerateNewId ( utcEventTime ) . ToString ( ) ;
35+ // create a 19 character String for reverse chronological ordering.
36+ return $ " { DateTime . MaxValue . Ticks - utcEventTime . Ticks : D19 } " ;
3737 }
3838
3939
You can’t perform that action at this time.
0 commit comments