mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
Added timestamp to debug console messages
This commit is contained in:
parent
b8f95cf6cf
commit
b94ebe082d
2 changed files with 1 additions and 6 deletions
|
|
@ -54,11 +54,6 @@ namespace PepperDash.Core
|
||||||
// Config = config;
|
// Config = config;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
public void EnableUsageTracker()
|
|
||||||
{
|
|
||||||
UsageTracker = new UsageTracker();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddPreActivationAction(Action act)
|
public void AddPreActivationAction(Action act)
|
||||||
{
|
{
|
||||||
if (_PreActivationActions == null)
|
if (_PreActivationActions == null)
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ namespace PepperDash.Core
|
||||||
public static void Console(uint level, string format, params object[] items)
|
public static void Console(uint level, string format, params object[] items)
|
||||||
{
|
{
|
||||||
if (Level >= level)
|
if (Level >= level)
|
||||||
CrestronConsole.PrintLine("App {0}:{1}", InitialParametersClass.ApplicationNumber,
|
CrestronConsole.PrintLine("[{0}]App {1}:{2}", DateTime.Now.ToString("HH:mm:ss.fff"), InitialParametersClass.ApplicationNumber,
|
||||||
string.Format(format, items));
|
string.Format(format, items));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue