mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
feat: Adding ProgramLogsPath to PathUtils
This commit is contained in:
parent
23afa8e025
commit
8892e6e223
1 changed files with 23 additions and 0 deletions
|
|
@ -93,6 +93,29 @@ namespace ICD.Common.Utils
|
|||
[PublicAPI]
|
||||
public static string ProgramLibPath { get { return Join(ProgramConfigPath, "Lib"); } }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute path to the logs directory.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[PublicAPI]
|
||||
public static string ProgramLogsPath
|
||||
{
|
||||
get
|
||||
{
|
||||
string directoryName = "Logs";
|
||||
|
||||
switch (IcdEnvironment.RuntimeEnvironment)
|
||||
{
|
||||
case IcdEnvironment.eRuntimeEnvironment.SimplSharp:
|
||||
case IcdEnvironment.eRuntimeEnvironment.SimplSharpPro:
|
||||
directoryName = string.Format("Program{0:D2}Logs", ProgramUtils.ProgramNumber);
|
||||
break;
|
||||
}
|
||||
|
||||
return Join(RootConfigPath, directoryName);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue