mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-14 09:34:37 +01:00
add proper logger, saves to file as well
This commit is contained in:
16
AscNet.Logging/LoggingExtensions.cs
Normal file
16
AscNet.Logging/LoggingExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace AscNet.Logging
|
||||
{
|
||||
public static class LoggingExtensions
|
||||
{
|
||||
public static string RemoveBefore(this string value, char character)
|
||||
{
|
||||
int index = value.LastIndexOf(character);
|
||||
if (index > 0)
|
||||
{
|
||||
value = value[(index + 1)..];
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user