elena1234

Json

Apr 23rd, 2021 (edited)
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using Logger_Exercise.Interfaces;
  2.  
  3. namespace Logger_Exercise.Layouts
  4. {
  5.     public class JsonLayout : ILayout
  6.     {
  7.         public string Format
  8.         =>  @"{{        
  9. ""log"": {{
  10. ""date"": {0},
  11. ""level"": {1},
  12. ""message"": {2}
  13. }}
  14. }}";
  15.     }
  16. }
  17.  
Add Comment
Please, Sign In to add comment