Skip to content

Commit 75bd098

Browse files
Improve readability
1 parent d300101 commit 75bd098

File tree

1 file changed

+5
-5
lines changed
  • 14/umbraco-cms/fundamentals/code/debugging

1 file changed

+5
-5
lines changed

14/umbraco-cms/fundamentals/code/debugging/logging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In Umbraco we use the underlying logging framework of [Serilog](https://serilog.net/).
44

5-
Out of the box we write a JSON log file that contains a more rich logfile, that allows tools to perform searches & correlation on log patterns a lot easier.
5+
Out of the box, we write a JSON log file that contains a more detailed logfile. This allows tools to perform searches and correlations on log patterns more efficiently.
66

77
The default location of this file is written to `umbraco/Logs` and contains the Machine name, along with the date too:
88

@@ -22,7 +22,7 @@ Serilog is a logging framework that allows us to do structured logging or write
2222
2021-08-10 09:33:23,677 [P25776/D1/T22] INFO Umbraco.Cms.Core.Services.Implement.ContentService - Document Home (id=1062) has been published.
2323
```
2424

25-
Here is an example of the same log message represented as JSON, you can see here we have much more information that would allow us to search & filter logs based on these properties with an appropriate logging system.
25+
Here is an example of the same log message represented as JSON. You can see that we have much more information. This would allow us to search and filter logs based on these properties with an appropriate logging system.
2626

2727
```json
2828
{
@@ -48,13 +48,13 @@ Here is an example of the same log message represented as JSON, you can see here
4848
}
4949
```
5050

51-
To learn more about structured logging and message templates you can read more about it over on the [https://messagetemplates.org](https://messagetemplates.org) website or alternatively watch this video from the Serilog creator - [https://www.youtube.com/watch?v=OhmNp8UPEEg](https://www.youtube.com/watch?v=OhmNp8UPEEg)
51+
To learn more about structured logging and message templates you can read more about it over on the [https://messagetemplates.org](https://messagetemplates.org) website. Alternatively watch this video from the Serilog creator - [https://www.youtube.com/watch?v=OhmNp8UPEEg](https://www.youtube.com/watch?v=OhmNp8UPEEg)
5252

5353
## Writing to the log
5454

55-
Umbraco writes log messages, but you are also able to use the Umbraco logger to write the log file as needed, so you can get further insights and details about your implementation.
55+
Umbraco writes log messages, but you are also able to use the Umbraco logger to write the log file as needed. This allows you to gain further insights and details about your implementation.
5656

57-
Here is an example of using the logger to write an Information message to the log which will contain one property of **Name** which will output the name variable that is passed into the method
57+
Here is an example of using the logger to write an Information message to the log. It will contain one property, **Name**, which will output the name variable that is passed into the method.
5858

5959
```csharp
6060
using Microsoft.AspNetCore.Mvc;

0 commit comments

Comments
 (0)