Download MovieFinder.Viewer/Classes/LogManager.cs from niobures/VideoSearch: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/niobures/VideoSearch/resolve/main/MovieFinder.Viewer/Classes/LogManager.cs
- Command line
-
hf download hf://niobures/VideoSearch/MovieFinder.Viewer/Classes/LogManager.cs
-
curl -L -o LogManager.cs https://huggingface.co/niobures/VideoSearch/resolve/main/MovieFinder.Viewer/Classes/LogManager.cs
804 Bytes
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.IO; | |
| namespace BlueTube.Viewer | |
| { | |
| public static class LogManager | |
| { | |
| private static string ErrorFile = "error.txt"; | |
| private static string LogFile = "log.txt"; | |
| static LogManager() | |
| { | |
| } | |
| public static void Log(string message) | |
| { | |
| if(AppSettings.Log) | |
| File.AppendAllText(LogFile, message +Environment.NewLine); | |
| } | |
| public static void LogError(string message, Exception ex) | |
| { | |
| if (AppSettings.Log) | |
| File.AppendAllText(ErrorFile, message + ": Exception => " + ex != null ? ex.ToString() : String.Empty + Environment.NewLine); | |
| } | |
| } | |
| } | |