Commit 983406b
Changed files (1)
trunk
product
MoMoney.Service
Infrastructure
Logging
trunk/product/MoMoney.Service/Infrastructure/Logging/LogFileTasks.cs
@@ -1,32 +0,0 @@
-using System.IO;
-using Gorilla.Commons.Infrastructure.Reflection;
-
-namespace MoMoney.Service.Infrastructure.Logging
-{
- public interface ILogFileTasks
- {
- string get_the_contents_of_the_log_file();
- string get_the_path_to_the_log_file();
- }
-
- public class LogFileTasks : ILogFileTasks
- {
- public string get_the_contents_of_the_log_file()
- {
- using (
- var file_stream = new FileStream(get_the_path_to_the_log_file(), FileMode.Open, FileAccess.Read,
- FileShare.ReadWrite))
- {
- using (var reader = new StreamReader(file_stream))
- {
- return reader.ReadToEnd();
- }
- }
- }
-
- public string get_the_path_to_the_log_file()
- {
- return Path.Combine(this.startup_directory(), @"logs\log.txt");
- }
- }
-}
\ No newline at end of file