Skip to content

Commit

Permalink
Moved LogStream from Common to Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Dec 12, 2024
1 parent 2bc266e commit 7a6440c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using ModTek.Common.Utils.LogStreamImpl;
using ModTek.Features.Logging.LogStreamImpl;

namespace ModTek.Common.Utils;
namespace ModTek.Features.Logging;

internal class LogStream
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.IO;

namespace ModTek.Common.Utils.LogStreamImpl;
namespace ModTek.Features.Logging.LogStreamImpl;

internal class FileStreamImpl : ILogStream
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace ModTek.Common.Utils.LogStreamImpl;
namespace ModTek.Features.Logging.LogStreamImpl;

internal interface ILogStream : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.IO;

namespace ModTek.Common.Utils.LogStreamImpl;
namespace ModTek.Features.Logging.LogStreamImpl;

// posix guarantees atomic appends to a file
// so instead of app level locks we get os level serialization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using Microsoft.Win32.SafeHandles;

namespace ModTek.Common.Utils.LogStreamImpl;
namespace ModTek.Features.Logging.LogStreamImpl;

// avoids lock in the app
// still serializes the IO on OS level
Expand Down

0 comments on commit 7a6440c

Please sign in to comment.