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
|`theme`| The color theme applied when rendering individual message tokens. |`ThemePresets.Literate`|
61
+
|`autoScroll`| When `true` (default) the target control scrolls automatically to the most recent log line. |`true`|
62
+
|`maxLogLines`| Maximum number of log events retained in the in-memory circular buffer and rendered in the control. |`256`|
63
+
|`outputTemplate`| Serilog output template that controls textual formatting of each log event. |`[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}`|
64
+
|`formatProvider`| Optional culture-specific or custom formatting provider used when rendering scalar values; `null` for the invariant culture. |`CultureInfo.InvariantCulture`|
65
+
|`prettyPrintJson`| When `true`, formats JSON values with indentation and line breaks for better readability. |`false`|
66
+
|`spacesPerIndent`| Number of spaces per indentation level when pretty printing JSON. |`2`|
|`ThemePresets.Literate`| Styled to replicate the default theme of Serilog.Sinks.Console __(default)__|
75
+
|`ThemePresets.Grayscale`| A theme using only shades of gray, white, and black |
76
+
|`ThemePresets.Colored`| A theme based on the original Serilog.Sinks.ColoredConsole sink |
77
+
|`ThemePresets.Luminous`| A light theme with high contrast for accessibility |
65
78
66
79
The themes based on the original sinks are slightly adjusted to be [WCAG compliant](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum), ensuring that the contrast ratio between text and background colors is at least 4.5:1.
67
80
68
81
You can create your own custom themes by creating a new instance of the [Theme](Serilog.Sinks.RichTextBox.WinForms.Colored/Sinks/RichTextBoxForms/Themes/Theme.cs) class and passing it to the `RichTextBox` extension method. Look at the [existing themes](Serilog.Sinks.RichTextBox.WinForms.Colored/Sinks/RichTextBoxForms/Themes/ThemePresets.cs) for examples.
69
82
70
-
## Frequently Asked Questions
71
-
72
-
### Why is the package name so long?
83
+
## Support the Project 💖
73
84
74
-
Shorter alternatives were already reserved in the NuGet registry, so a more descriptive name was needed for this implementation. The name is a bit long, but it makes it easier to find the package in the NuGet registry.
85
+
This project has been maintained since 2022 and is still under active development. If you find it useful, please consider supporting it. Your support will help keep the project alive and allow me to dedicate more time to making improvements. You can support it through:
75
86
76
-
### Why use a WinForms RichTextBox instead of a WPF RichTextBox?
This sink is specifically designed for WinForms applications to avoid the WPF framework. Using a WPF-based logging component would require adding the entire WPF framework with all its dependencies, greatly increasing the size of the application.
90
+
Every contribution of any size helps sustain ongoing development.
79
91
80
-
## Support and Contribute
92
+
## Contributing
81
93
82
-
If you find value in this project, there are several ways you can contribute:
94
+
Contributions are welcome! Report issues, improve documentation, or submit pull requests.
83
95
84
-
- Give the [project](https://github.com/vonhoff/Serilog.Sinks.RichTextBox.WinForms.Colored) a star on GitHub ⭐
85
-
- Support the project through [GitHub Sponsors](https://github.com/sponsors/vonhoff)
86
-
- Improve docs, report bugs, or submit PRs (see [CONTRIBUTING.md](CONTRIBUTING.md))
96
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
Copy file name to clipboardExpand all lines: SECURITY.md
+1-1Lines changed: 1 addition & 1 deletion
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
## Reporting a Vulnerability
4
4
5
-
If you find a security issue, please email `simon.vonhoff[at]outlook.com` with a description. Include a suggested fix if you have one.
5
+
If you find a security issue, please email `simon.vonhoff@outlook.com` with a description. Include a suggested fix if you have one.
6
6
7
7
We will review the report, release a fix or mitigation if needed, and credit you. Do **not** disclose the issue publicly until a fix is released. Once addressed, public disclosure is allowed.
0 commit comments