You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topics/Platform/Logging.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The ReSharper Platform provides a comprehensive set of logging features, such as logging levels and different log listeners. It can also be configured with different levels and listeners based on a log category, such as "JetBrains.DataFlow" for capturing log events from the DataFlow subsystem.
4
4
5
-
There are two ways to enable logging, via the command line and via a config file. The command line options are much simpler, and can only control logging level and enable logging to a file. The config file provides much more power and can configure multiple listeners, as well as different configuration options per category. ReSharper even provides an Options page to configure logging, once [Internal Mode](InternalMode.md) is enabled.
5
+
There are two ways to enable logging, via the command line and via a config file. The command line options are much simpler, and can only control logging level and enable logging to a file. The config file provides much more power and can configure multiple listeners, as well as different configuration options per category. ReSharper even provides an Options page to configure logging, once [Internal Mode](internal_mode.md) is enabled.
6
6
7
7
## Command line
8
8
@@ -45,7 +45,7 @@ By specifying a logging level, you will get all log events at that level and bel
45
45
46
46
## Logging options page
47
47
48
-
The simplest way to create a file is to use the Logging options page when running in [Internal Mode](InternalMode.md). This page shows the current configuration of logging, based on the command line args, the currently created and active log files, and what appenders/listeners and loggers are active.
48
+
The simplest way to create a file is to use the Logging options page when running in [Internal Mode](internal_mode.md). This page shows the current configuration of logging, based on the command line args, the currently created and active log files, and what appenders/listeners and loggers are active.
49
49
50
50
<!-- TODO: Add screenshot -->
51
51
@@ -55,4 +55,4 @@ The page also shows the current active configuration, including currently active
55
55
56
56
## System debug and trace
57
57
58
-
The ReSharper Platform will add a `TraceListener` to route .net generated events through ReSharper's logging system, so it will be possible to capture log events generated by `System.Diagnostics.Debug` and `System.Diagnostics.Trace`.
58
+
The ReSharper Platform will add a `TraceListener` to route .net generated events through ReSharper's logging system, so it will be possible to capture log events generated by `System.Diagnostics.Debug` and `System.Diagnostics.Trace`.
Copy file name to clipboardExpand all lines: topics/Platform/Logging/AdvancedConfiguration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ When running the ReSharper Platform in an [experimental instance of Visual Studi
12
12
>
13
13
{type="tip"}
14
14
15
-
The best way to set up a log file is via the [Logging Options Page](Logging.md#logging-options-page) which is only visible when in [Internal Mode](InternalMode.md).
15
+
The best way to set up a log file is via the [Logging Options Page](Logging.md#logging-options-page) which is only visible when in [Internal Mode](internal_mode.md).
16
16
17
17
The file format is fairly straightforward:
18
18
@@ -92,4 +92,4 @@ The `pattern` attribute of the `appender` element can be used to format log mess
92
92
*`%p` - process ID.
93
93
*`%P` - process name.
94
94
95
-
Also, the width of the parameter can be specified between the percent symbol and the control character, e.g. `%{min}.{max}c` will ensure that the output value has at least `{min}` characters and at most `{max}`. If there are fewer characters than `{min}`, the text is right justified (padded with leading spaces). By specifying a negative number for `{min}`, the text is left justified (padded with trailing spaces).
95
+
Also, the width of the parameter can be specified between the percent symbol and the control character, e.g. `%{min}.{max}c` will ensure that the output value has at least `{min}` characters and at most `{max}`. If there are fewer characters than `{min}`, the text is right justified (padded with leading spaces). By specifying a negative number for `{min}`, the text is left justified (padded with trailing spaces).
Copy file name to clipboardExpand all lines: topics/Platform/Zones/Activation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ class DotPeekZoneActivator :
46
46
47
47
There is usually little or no logic in the implementation of `ActivatorEnabled`. Generally speaking, if a product is installed, it should be activated. Activation is separate to licensing, trial versions and user disabling of a product or feature - this is handled separately by the ReSharper Platform. Unlicensed, expired, or disabled zones are removed from the list of activated zones before components are filtered into the container.
48
48
49
-
However, it is perfectly reasonable to implement some logic in this method, for example, the `InternalModeProductZoneActivator` class will activate the `IInternalVisibilityZone` (for [Internal Mode](InternalMode.md)) only if the `/Internal` command line argument is supplied.
49
+
However, it is perfectly reasonable to implement some logic in this method, for example, the `InternalModeProductZoneActivator` class will activate the `IInternalVisibilityZone` (for [Internal Mode](internal_mode.md)) only if the `/Internal` command line argument is supplied.
50
50
51
51
### Explicit implementation
52
52
@@ -72,7 +72,7 @@ public class MyZone : IActivate<IZone1>, IActivate<IZone2>
72
72
73
73
### Activator class as component
74
74
75
-
Similarly, zone activator classes are components (`ZoneActivatorAttribute` derives from `EnvironmentComponentAttribute`, so they are components that get created very early in the application lifecycle), which means they can accept dependencies in the constructor. For example, a Feature that is intended for use only in [Internal Mode](InternalMode.md) can do something like:
75
+
Similarly, zone activator classes are components (`ZoneActivatorAttribute` derives from `EnvironmentComponentAttribute`, so they are components that get created very early in the application lifecycle), which means they can accept dependencies in the constructor. For example, a Feature that is intended for use only in [Internal Mode](internal_mode.md) can do something like:
76
76
77
77
```csharp
78
78
[ZoneActivator]
@@ -209,4 +209,4 @@ This has the same effect as a simple implementation of `IActivate<TZone>.Activat
209
209
>
210
210
> In order to successfully appear on the Products and Features page, a zone must be activated by a zone activator. Make sure to include a valid zone marker for the activator class!
0 commit comments