Skip to content

Commit da18b6f

Browse files
committed
remove the em-dashes
1 parent 3fedac0 commit da18b6f

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/site/antora/modules/ROOT/pages/manual/configuration.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Example usage:
297297
This attribute may only be used once per assembly.
298298
299299
Using attributes can be a clearer method for defining where the application's configuration will be loaded from.
300-
However, note that attributes are passive they only provide information.
300+
However, note that attributes are passive: they only provide information.
301301
Therefore, to trigger log4net to read and process the attributes, you must invoke log4net.
302302
A simple call to `LogManager.GetLogger` will cause the attributes on the calling assembly to be processed.
303303
@@ -438,7 +438,7 @@ This tells .NET to ignore the section, as it will be processed by log4net instea
438438
439439
Android does not support `.config` files.
440440
441-
Instead, you can set `AppSettings` values as environment variables for your process this works only on Android.
441+
Instead, you can set `AppSettings` values as environment variables for your process: this works only on Android.
442442
443443
You must also load the `log4net` configuration manually, for example by reading it from an XML file at runtime.
444444

src/site/antora/modules/ROOT/pages/manual/configuration/appenders.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This prevents logging events from being passed to ancestor appenders beyond that
128128
129129
[NOTE]
130130
====
131-
If the `Animals` logger has `additivity = false`, then the `Animals.Carnivora` logger will only send its log messages to its own appenders and to `Animals`’ appenders
131+
If the `Animals` logger has `additivity = false`, then the `Animals.Carnivora` logger will only send its log messages to its own appenders and to `Animals`’ appenders,
132132
but not to any appenders higher up in the hierarchy, such as those on the root logger.
133133
====
134134

src/site/antora/modules/ROOT/pages/manual/configuration/appenders/remotesyslogappender.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The `RemoteSyslogAppender` uses the UDP protocol to send log messages to the sys
131131
However, there are size limitations associated with UDP:
132132
133133
* **Message size:** Each log message is limited to **64 KB**, including both the message content and the headers.
134-
* **Practical size limit:** On many networks, such as Ethernet, the practical limit for message size is typically much lower around **1500 bytes**.
134+
* **Practical size limit:** On many networks, such as Ethernet, the practical limit for message size is typically much lower, around **1500 bytes**.
135135
* **Message truncation:** If a log message exceeds these size limits, it will be **truncated**, which means some of the message content will be lost.
136136
137137
To avoid truncation, ensure that log messages are kept within the size limits of your network setup.

src/site/antora/modules/ROOT/pages/manual/configuration/layouts.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ This section outlines some common concerns shared by most predefined layouts in
3434
In modern production environments, logs are typically not read from local files by engineers.
3535
Instead, they are sent to log ingestion systems like Elasticsearch, Google Cloud Logging, or similar platforms for observability, metrics, and monitoring purposes.
3636
37-
To support this, logs must be encoded in a machine-readable format a practice known as *structured logging*.
37+
To support this, logs must be encoded in a machine-readable format, a practice known as *structured logging*.
3838
3939
log4net provides support for structured logging through specialized layouts.
4040
For production use cases, we recommend using either:
4141
42-
* `XmlLayout` for structured XML output.
43-
* `JsonLayout` via the external project https://gitlab.com/gdziadkiewicz/log4net.Ext.Json/-/blob/develop/log4net.Ext.Json/Layout/SerializedLayout.cs[log4net.Ext.Json].
42+
* `XmlLayout` - for structured XML output.
43+
* `JsonLayout` - via the external project https://gitlab.com/gdziadkiewicz/log4net.Ext.Json/-/blob/develop/log4net.Ext.Json/Layout/SerializedLayout.cs[log4net.Ext.Json].
4444
4545
These layouts help ensure your logs are compatible with log aggregation and analysis tools.
4646
@@ -84,7 +84,7 @@ will yield the output
8484
The `DynamicPatternLayout` should be used whenever the header or footer needs to include information that may change over time.
8585
8686
Unlike the static `PatternLayout`, which renders headers and footers only once, the `DynamicPatternLayout` re-evaluates its pattern every time it is invoked.
87-
This makes it possible, for example, to include the current date and time in the header or footersomething not possible with the static layout.
87+
This makes it possible, for example, to include the current date and time in the header or footer, something not possible with the static layout.
8888
8989
The following example shows how to configure the `DynamicPatternLayout`:
9090

src/site/antora/modules/ROOT/pages/manual/faq.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ log.Debug("Entry number: " + i + " is " + entry[i]);
230230
log.Debug($"Entry number: {i} is {entry[i]}");
231231
----
232232
233-
incurs the cost of constructing the message, including converting values to strings and concatenating themregardless of whether the message is logged.
233+
incurs the cost of constructing the message, including converting values to strings and concatenating them, regardless of whether the message is logged.
234234
235235
A more efficient alternative is to use log.DebugFormat etc., which formats the message only if the log level is enabled:
236236
@@ -252,7 +252,7 @@ if (log.IsDebugEnabled)
252252
[#locking-models]
253253
=== How do I get multiple process to log to the same file?
254254
255-
Before proceeding, consider if it's absolutely necessary to have multiple processes log to the same file it's often better to avoid this.
255+
Before proceeding, consider if it's absolutely necessary to have multiple processes log to the same file: it's often better to avoid this.
256256
257257
FileAppender offers different locking models, but they have limitations:
258258

src/site/antora/modules/ROOT/pages/manual/introduction.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ log4net can render the content of log messages using custom logic defined by the
328328
For example, if you often log `Orange` objects, you can register an `OrangeRenderer` to format them consistently in logs.
329329
330330
Renderers follow the class hierarchy.
331-
If you register a `FruitRenderer`, it will be used for all `Fruit` typesincluding `Orange`unless a more specific `OrangeRenderer` is also registered.
331+
If you register a `FruitRenderer`, it will be used for all `Fruit` types (including `Orange`) unless a more specific `OrangeRenderer` is also registered.
332332
333333
Renderers must implement the `log4net.ObjectRenderer.IObjectRenderer` interface.
334334

0 commit comments

Comments
 (0)