Skip to content

Commit

Permalink
make log manager class clear
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Feb 17, 2021
1 parent 71f6466 commit 760e976
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace IPTables.Net
{
public class LogManager
public class IPTablesLogManager
{
public static ILogger Log { get; set; } = Logger.None;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace IPTables.Net.Iptables.Adapter.Client.Helper
{
class IPTablesRestoreTableBuilder
{
protected static readonly ILogger Log = LogManager.GetLogger<IPTablesRestoreTableBuilder>();
protected static readonly ILogger Log = IPTablesLogManager.GetLogger<IPTablesRestoreTableBuilder>();

private class Table
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace IPTables.Net.Iptables.Adapter.Client
{
abstract class IpTablesAdapterClientBase : INetfilterAdapterClient
{
protected static readonly ILogger Log = LogManager.GetLogger<INetfilterAdapterClient>();
protected static readonly ILogger Log = IPTablesLogManager.GetLogger<INetfilterAdapterClient>();

public abstract void StartTransaction();

Expand Down
2 changes: 1 addition & 1 deletion IPTables.Net/Iptables/IpSet/Adapter/IpSetBinaryAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace IPTables.Net.Iptables.IpSet.Adapter
public class IpSetBinaryAdapter
{
private const String BinaryName = "ipset";
protected static readonly ILogger _log = LogManager.GetLogger<IpSetBinaryAdapter>();
protected static readonly ILogger _log = IPTablesLogManager.GetLogger<IpSetBinaryAdapter>();

private readonly ISystemFactory _system;

Expand Down
2 changes: 1 addition & 1 deletion IPTables.Net/Iptables/RuleGenerator/MultiportAggregator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace IPTables.Net.Iptables.RuleGenerator
/// <typeparam name="TKey"></typeparam>
public class MultiportAggregator<TKey> : IRuleGenerator
{
protected static readonly ILogger Log = LogManager.GetLogger<MultiportAggregator<TKey>>();
protected static readonly ILogger Log = IPTablesLogManager.GetLogger<MultiportAggregator<TKey>>();
private String _chain;
private String _table;
private Dictionary<TKey, List<IpTablesRule>> _rules = new Dictionary<TKey, List<IpTablesRule>>();
Expand Down

0 comments on commit 760e976

Please sign in to comment.