Skip to content

SUIT-16525 - Detailed logs settings#347

Open
AntonSBilan wants to merge 1 commit into
masterfrom
hotfix/SUIT-16525_Detailed_logs_settings
Open

SUIT-16525 - Detailed logs settings#347
AntonSBilan wants to merge 1 commit into
masterfrom
hotfix/SUIT-16525_Detailed_logs_settings

Conversation

@AntonSBilan
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread config/index.js
logLevelTestErrors: logLevels.normal,
logLevelNetworkLogs: logLevels.normal,
logLevelConsoleLogs: logLevels.normal,
logLevelTestLauncher: logLevels.normal,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@andriichumak that's not in ticket but I added as we have some logs that doe's not relate to any of type above and with 'logLevel': 'silent' they should not be logged

Comment thread index.d.ts
setLogLevelTestLines(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelTestErrors(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelNetworkLogs(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelConsoleLogs(logLevel: ConfigureOptions['logLevel']): void;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

did not include "logLevelDebug" to be overridable

@andriichumak
Copy link
Copy Markdown
Contributor

@AntonSBilan , as a user I would rather define it like this in my .suitestrc:

{
  // ...
  logLevel: {
    testErrors: 'debug',
    networkLogs: 'silent',
    console.log: 'verbose',
    // ...
  }
}

I imagine you flatten it for CLI?

@andriichumak
Copy link
Copy Markdown
Contributor

Then setLogLevel function could also accept either a string (same level for all logs), or a hash with individual levels.

@andriichumak andriichumak changed the base branch from next-release to master April 29, 2021 15:10
@polomsky polomsky force-pushed the master branch 4 times, most recently from a7cd28b to ebd5e39 Compare March 6, 2024 20:41
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