- GH.3Tier.Demo.zip
- GH.3Tier.Demo
- 3rdPartyTools
- EntityFramework.4.3.1
- lib
- net40
- Ninject
- GH.Common
- Framework
- Business
- Client
- Persistence
- GH.Common.csproj
- LogService
- Properties
- Service References
- Domain.Models
- ServiceLocator
- Utils
- GH.Northwind
- Business
- GH.Northwind.Business.Entities
- GH.Northwind.Business.Host
- GH.Northwind.Business.Interfaces
- GH.Northwind.Business
- Clients
- GH.Northwind.Client.Common
- GH.Northwind.Web
- Content
- Site.css
- themes
- base
- images
- ui-bg_flat_0_aaaaaa_40x100.png
- ui-bg_flat_75_ffffff_40x100.png
- ui-bg_glass_55_fbf9ee_1x400.png
- ui-bg_glass_65_ffffff_1x400.png
- ui-bg_glass_75_dadada_1x400.png
- ui-bg_glass_75_e6e6e6_1x400.png
- ui-bg_glass_95_fef1ec_1x400.png
- ui-bg_highlight-soft_75_cccccc_1x100.png
- ui-icons_222222_256x240.png
- ui-icons_2e83ff_256x240.png
- ui-icons_454545_256x240.png
- ui-icons_888888_256x240.png
- ui-icons_cd0a0a_256x240.png
- jquery-ui.css
- Controllers
- GH.Northwind.Web.csproj
- GH.Northwind.Web.csproj.user
- Global.asax
- Global.asax.cs
- ModelBinders
- Models
- Properties
- Scripts
- Views
- Web.config
- Web.Debug.config
- Web.Release.config
- Persistence
- GH.Northwind.EntityFramework.Host
- GH.Northwind.EntityFramework
- GH.Northwind.Persistence
- GH.NTier.Demo.sln
- GH.NTier.Demo.suo
- instnwnd.sql
- Local.testsettings
- scaffolding.config
- TraceAndTestImpact.testsettings
- GH.3Tier.Demo-noexe.zip
|
/*
* Copyright © 2012
* This code is for the codeproject article "A N-Tier Architecture Sample with ASP.NET MVC3, WCF and Entity Framework" at
* http://www.codeproject.com/Articles/434282/A-N-Tier-Architecture-Sample-with-ASP.NET-MVC3-WCF-and-Entity-Framework.
* Permission to use, copy or modify this software freely is hereby granted,
* provided that this copyright notice appears in the orginal or modified copies.
*
* This code isn't guaranteed to work correctly; it is your own responsibility for
* any result from using this code.
*
* @description
*
* @author
* @version July 18, 2012
* @see
* @since
*/
using System;
namespace GH.Common.LogService
{
public static class Log<T>
{
private static ILogger<T> _logger;
public static ILogger<T> LogProvider
{
get
{
if (_logger == null) _logger = new LoggerImplDefault<T>();
return _logger;
}
set { _logger = value; }
}
public static LogLevel LogLevel
{
get { return LogProvider.LogLevel; }
}
public static void Debug(String msg)
{
LogProvider.Debug(msg);
}
public static void Info(String msg)
{
LogProvider.Info(msg);
}
public static void Warn(String msg)
{
LogProvider.Warn(msg);
}
public static void Warn(String msg, Exception ex)
{
LogProvider.Warn(msg, ex);
}
public static void Warn(Exception ex)
{
LogProvider.Warn(ex);
}
public static void Error(String msg)
{
LogProvider.Error(msg);
}
public static void Error(String msg, Exception ex)
{
LogProvider.Error(msg, ex);
}
public static void Error(Exception ex)
{
LogProvider.Error(ex);
}
public static void Fatal(String msg)
{
LogProvider.Fatal(msg);
}
public static void Fatal(String msg, Exception ex)
{
LogProvider.Fatal(msg, ex);
}
public static void Fatal(Exception ex)
{
LogProvider.Fatal(ex);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.