/// <summary> /// Adds a log entry for the specified job and logs message to log file /// </summary> private static void AddLogEntry(long jobId, string message, LogEntryTarget target) { if (target.IsSet(LogEntryTarget.Database) && jobId > 0) { LogManager.AddLogEntry(jobId, message); } if (target.IsSet(LogEntryTarget.File)) { m_Logger.DebugFormat("JobId: {0} : {1}", jobId, message); } }
/// <summary> /// Adds a log entry to the job log in database and a debug entry log file (where required) /// </summary> private void AddLogEntry(string message, LogEntryTarget target) { if (target.IsSet(LogEntryTarget.Database) && JobId > 0) { LogManager.AddLogEntry(JobId, message); } if (target.IsSet(LogEntryTarget.File)) { m_Logger.DebugFormat("JobId: {0} / AssetId: {1} - {2}", JobId, AssetId, message); } }