Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature journal control merge files#275

Merged
LukasWikander merged 10 commits into
devfrom
feature_journalControlMergeFiles
Jul 16, 2020
Merged

Feature journal control merge files#275
LukasWikander merged 10 commits into
devfrom
feature_journalControlMergeFiles

Conversation

@LukasWikander

Copy link
Copy Markdown
Collaborator

Depends on #274 . This PR adds the actual merging of the files. Turns out that ObjectControl is the only module which used to send data to Logger while in the running state, so the output log from JournalControl only contains data from there by default... we will have to implement some more actual (non-LogMessage) logging in scenario control.

If you wish to test the behaviour manually, just create a file in ~/.maestro/journal named WhatEverNameControl-2020-07-13.jnl (current date) and append some stuff to it while a test is running. The format is
<epoch timestamp in s>: <data>\n,
and the output file is named based on the ScenarioName parameter in test.conf e.g. UnnamedScenario.jnl

Or you could call JournalRecordString from some other module than ObjectControl, in the running state.

Remember that JournalRecordString should not be used for things like "SystemControl connected to IP x.x.x.x" so that we can keep the output easy to parse by e.g. excel.

@konglobemeralt konglobemeralt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to run "manually" but other than that it works fine and I can't find anything to complain about in the code.

@LukasWikander LukasWikander merged commit cd81887 into dev Jul 16, 2020
@LukasWikander LukasWikander deleted the feature_journalControlMergeFiles branch July 16, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants