1.6 KiB
1.6 KiB
Hints
General
- The csharp.net strings tutorial has a nice introduction to C#
string
s. - The
string
class has many useful built-in methods.
1. Get message from a log line
- Different options to search for text in a string are explored in this tutorial.
- Removing white space is built-in.
2. Get log level from a log line
- Changing a
string
's casing is explored in this tutorial.
3. Reformat a log line
- There are several ways to concatenate strings, but the preferred one is usually string interpolation.