This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Athlete | |
{ | |
[JsonProperty("id")] | |
public int ? Id {get;set;} | |
[JsonProperty("resource_state")] | |
public int ? ResourceState {get;set;} | |
[JsonProperty("profile_medium")] | |
public string ProfileMedium {get;set;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Athlete | |
{ | |
[JsonProperty("id")] | |
public int ? Id {get;set;} | |
[JsonProperty("resource_state")] | |
public int ? ResourceState {get;set;} | |
[JsonProperty("profile_medium")] | |
public string ProfileMedium {get;set;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ILogger | |
{ | |
void LogDebug(string message); | |
void LogDebug(string message, string category); | |
void LogDebug(string message, Exception ex); | |
void LogDebug(string message, string category, Exception ex); | |
void LogInformation(string message); | |
void LogInformation(string message, string category); | |
void LogWarning(string message); | |
void LogWarning(string message, string category); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Logger: ILogger | |
{ | |
#region Constructor | |
public Logger() | |
{ | |
log4net.Config.XmlConfigurator.Configure(); | |
this.Log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appender name="TracingAppenderFile" type="log4net.Appender.RollingFileAppender"> | |
<file value=".\\\App_Data\\\Logs\" /> | |
<datePattern value="yyyy-MM-dd'-TracingLogs.log'" /> | |
<appendToFile value="true" /> | |
<maximumFileSize value="256KB" /> | |
<maxSizeRollBackups value="20" /> | |
<rollingStyle value="Date" /> | |
<staticLogFileName value="false" /> | |
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | |
<layout type="log4net.Layout.PatternLayout"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using log4net.Core; | |
using log4net.Layout.Pattern; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parameter> | |
<parameterName value="@Category" /> | |
<dbType value="String" /> | |
<size value="255" /> | |
<layout type="log4net.Layout.PatternLayout"> | |
<conversionPattern value="%property{Category}" /> | |
</layout> | |
</parameter> |