Skip to content

Conversation

@AntonSBilan
Copy link
Contributor

No description provided.

logLevelTestErrors: logLevels.normal,
logLevelNetworkLogs: logLevels.normal,
logLevelConsoleLogs: logLevels.normal,
logLevelTestLauncher: logLevels.normal,
Copy link
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

setLogLevelTestLines(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelTestErrors(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelNetworkLogs(logLevel: ConfigureOptions['logLevel']): void;
setLogLevelConsoleLogs(logLevel: ConfigureOptions['logLevel']): void;
Copy link
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
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
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.

3 participants