Skip to content

Commit

Permalink
feat: add console write to point users to the location of the log bec…
Browse files Browse the repository at this point in the history
…ause default is no longer static and uses `Path.GetTempPath()`
  • Loading branch information
groberts committed Apr 19, 2022
1 parent 89d3704 commit 68bedf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AtlassianCloudBackupsTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ public static void Main(string[] args)
{
ParameterCollection parameters = new ParameterCollection(args);

var logLocation = parameters.GetParameterValue<string>("logPath") ?? @"c:\\temp";
var logLocation = parameters.GetParameterValue<string>("logPath") ?? Path.GetTempPath();
var logFileName = parameters.GetParameterValue<string>("logFileName") ?? "atlassian-could-backup-tool.log";

Console.WriteLine($"Log file can be found at {logLocation}/{logFileName}");

_logLabel = "Backup-Tool";

Logger.Current.Init(logLocation, logFileName);
Expand Down

0 comments on commit 68bedf8

Please sign in to comment.