<commit_before>---
title: How logging works in ServiceInsight
summary: How logging works and how to log more verbosely if necessary.
tags: 
- Logging
---

When launching ServiceInsight, you can see the Log Window. This window is more like Output window of your IDE and you can see some of the most important logs in the system without going through log file parsing and the usual hassles.

To keep the number of logs minimal and relavant, the Log Window relates mostly to HTTP operations and calls to [ServiceControl](http://docs.particular.net/Search?q=ServiceControl), as due to nature of the HTTP operations (timeouts, network issues, etc.) they can cause the most confusion. 

You can see that we're logging all the HTTP communications with ServiceControl; the request being sent, the parameters, and the request/response headers are all logged. Also if a request to ServiceControl fails, you can see it in red in the Logs window.

![Log Window](008_logwindow.png)

The logging options such as Log Level and source of the log are currently not directly configurable from ServiceInsight. However, you can easily log more details, or log entries of other ServiceInsight components such as licensing, application startup, etc.

Advanced logging <commit_msg>Update how-logging-works.md<commit_after>---
title: How logging works in ServiceInsight
summary: How logging works and how to log more verbosely if necessary.
tags: 
- Logging
---

When launching ServiceInsight, you can see the Log Window. This window is like the Output window of your IDE and you can see some of the most important logs in the system without parsing log files and going through the usual hassles.

To keep the number of logs minimal and relavant, the Log Window relates mostly to HTTP operations and calls to [ServiceControl](http://docs.particular.net/Search?q=ServiceControl), as due to nature of the HTTP operations (timeouts, network issues, etc.) they can cause the most confusion. 

You can see that we're logging all the HTTP communications with ServiceControl; the request being sent, the parameters, and the request/response headers are all logged. Also if a request to ServiceControl fails, you can see it in red in the Logs window.

![Log Window](008_logwindow.png)

The logging options such as Log Level and source of the log are currently not directly configurable from ServiceInsight. However, you can easily log more details, or log entries of other ServiceInsight components such as licensing, application startup, etc.

Advanced logging 
{'fraction_non_alphanumeric': 0.046245059288537546, 'fraction_numerical': 0.0023715415019762848, 'mean_word_length': 4.687640449438202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4543931', 'n_tokens_mistral': 609, 'n_tokens_neox': 586, 'n_words': 375}