Skip to content

Logger_config - actual output location is not consistent #604

Description

@simonyg

No Path

Using this logging configuration with relative log path in the agent.cfg:

logger_config
{
   output = file agent.log
}

the location of the agent.cfg is <location>.

Expect: all the log files are in <location>

Case 1:

run the command at <location>
agent run

Found agent.log and the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location> - GOOD

Case 2:

install it as service by running the command at <location>
agent install

Found agent.log and its archive file in the location of agent.exe and also at <location>

the archive file at <location> is likely created by the agent install process.

=====================================================

Absolute Path

Using this logging configuration with relative log path in the agent.cfg:

logger_config
{
   output = file c:\logs\agent.log
}

the location of the agent.cfg is <location>.

Expect: all the log files are in c:\logs

Case 1:

run the command at <location>
agent run

Found agent.log in c:\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>

case 2:

install it as service by running the command at <location>
agent install

Found agent.log in c:\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>

the archive file at <location> is likely created by the agent install process. No new archive can be found.

=====================================================

Relative Path

Using this logging configuration with relative log path in the agent.cfg:

logger_config
{
   output = file .\logs\agent.log
}

the location of the agent.cfg is .

Expect: all the log files are in \logs

Case 1:

run the command at <location>
agent run

Found agent.log in <location>\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>

case 2:

install it as service by running the command at <location>
agent install

Found empty <location>\logs directory, an archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>, agent.log at <location of agent.exe>\logs, archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log at <location of agent.exe>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions