本文整理汇总了C#中log4net.ILog.DebugFormat方法的典型用法代码示例。如果您正苦于以下问题:C# log4net.ILog.DebugFormat方法的具体用法?C# log4net.ILog.DebugFormat怎么用?C# log4net.ILog.DebugFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类log4net.ILog
的用法示例。
在下文中一共展示了log4net.ILog.DebugFormat方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextManager
public TextManager(Map map)
{
_log = Logging.LogManager.GetLogger(this);
_log.Info("TextManager is loading map text entries...");
_texts = new List<Text>();
_activeText = null;
if (!map.HasLayer("text"))
{
_log.Info("No text layer detected on map, aborting...");
return;
}
foreach (var obj in map.FindObjects((l, o) => l.Name == "text"))
{
string title = obj.Properties.ContainsKey("title") ? obj.Properties["title"] : "<No Title>";
string subtitle = obj.Properties.ContainsKey("subtitle") ? obj.Properties["subtitle"] : null;
_log.DebugFormat("Adding new text {0} of type {1}", obj.Name, obj.Type);
_texts.Add(new Text(obj.Bounds, obj.Name, obj.Type, title, subtitle));
}
_log.Debug("TextManager initialized!");
}
示例2: SoundManager
internal SoundManager(FMOD.System system, bool hardware = true)
{
_log = Logging.LogManager.GetLogger(this);
_log.Info("Initializing SoundManager...");
_system = system;
_sounds = new List<Sound>();
_soundMode = hardware ? MODE.HARDWARE : MODE.SOFTWARE;
_log.DebugFormat("Sound Mode == {0}", _soundMode);
_log.Debug("SoundManager initialized!");
}
示例3: Song
internal Song(string file, string name, float volume = 1.0f, bool loop = true, uint loopPoint = 0)
{
_log = Logging.LogManager.GetLogger(this);
_file = file;
_name = name;
_volume = volume;
_loop = loop;
_loopPoint = loopPoint;
_log.DebugFormat("New song {0} created: {1}", Name, FileName);
}
示例4: SongManager
internal SongManager(FMOD.System system, bool hardware = true)
{
_log = Logging.LogManager.GetLogger(this);
_log.Info("Initializing SongManager...");
_system = system;
_songs = new List<Song>();
// ReSharper disable BitwiseOperatorOnEnumWihtoutFlags
if (hardware)
_soundMode = MODE._2D | MODE.HARDWARE | MODE.CREATESTREAM;
else
_soundMode = MODE._2D | MODE.SOFTWARE | MODE.CREATESTREAM;
// ReSharper restore BitwiseOperatorOnEnumWihtoutFlags
_log.DebugFormat("Sound Mode == {0}", _soundMode);
_log.Debug("SongManager initialized!");
}