Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common Logging 3 Basic Support #8

Merged
merged 1 commit into from
Jan 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Common.Logging.Serilog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Common.Logging">
<HintPath>..\packages\Common.Logging.2.3.1\lib\net40\Common.Logging.dll</HintPath>
<HintPath>..\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll</HintPath>
</Reference>
<Reference Include="Common.Logging.Core">
<HintPath>..\packages\Common.Logging.Core.3.0.0\lib\net40\Common.Logging.Core.dll</HintPath>
</Reference>
<Reference Include="Serilog">
<HintPath>..\packages\Serilog.1.4.15\lib\net45\Serilog.dll</HintPath>
Expand Down
17 changes: 17 additions & 0 deletions src/SerilogCommonLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,5 +617,22 @@ protected void WriteFormat(LogLevel level, string message, object[] parameters)
else
Write(level, exception, string.Format(formatProvider, message, parameters));
}


/// <summary>
/// Returns the global context for variables
/// </summary>
public virtual IVariablesContext GlobalVariablesContext
{
get { return new Simple.NoOpVariablesContext(); }
}

/// <summary>
/// Returns the thread-specific context for variables
/// </summary>
public virtual IVariablesContext ThreadVariablesContext
{
get { return new Simple.NoOpVariablesContext(); }
}
}
}
3 changes: 2 additions & 1 deletion src/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Common.Logging" version="2.3.1" targetFramework="net45" />
<package id="Common.Logging" version="3.0.0" targetFramework="net45" />
<package id="Common.Logging.Core" version="3.0.0" targetFramework="net45" />
<package id="Serilog" version="1.4.15" targetFramework="net45" />
</packages>