From 7370cf570f317710b18fdd28f6a72120b880c4b4 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Wed, 23 Oct 2024 11:20:52 +0200 Subject: [PATCH] Add logLevel and logPrefix to parseArguments --- node-src/lib/parseArguments.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node-src/lib/parseArguments.ts b/node-src/lib/parseArguments.ts index 092b4e8da..67289f5bf 100644 --- a/node-src/lib/parseArguments.ts +++ b/node-src/lib/parseArguments.ts @@ -56,6 +56,8 @@ export default function parseArguments(argv: string[]) { --junit-report [filepath] Write build results to a JUnit XML file. {buildNumber} will be replaced with the actual build number. [chromatic-build-{buildNumber}.xml] --list List available stories. This requires running a full build. --log-file [filepath] Write log output to a file. Disable via --no-log-file. [chromatic.log] + --log-level One of "silent", "error", "warn", "info", "debug". Defaults to "info". + --log-prefix Prefix for each log line. Defaults to current timestamp except in interactive mode. Set to "" to disable. --no-file-hashing Disable file hashing. This will cause all files to be uploaded on every build. --no-interactive Don't ask interactive questions about your setup and don't overwrite output. Always true in non-TTY environments. --storybook-log-file [filepath] Write Storybook build output to a file. Disable via --no-storybook-log-file. [storybook-build.log] @@ -113,6 +115,8 @@ export default function parseArguments(argv: string[]) { junitReport: { type: 'string' }, list: { type: 'boolean' }, logFile: { type: 'string' }, + logLevel: { type: 'string', choices: ['silent', 'error', 'warn', 'info', 'debug'] }, + logPrefix: { type: 'string' }, storybookLogFile: { type: 'string' }, traceChanged: { type: 'string' }, uploadMetadata: { type: 'boolean' },