mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 08:15:08 -05:00
Introduce two-stage logging configuration and overrides for enabled status, log level and log namespaces. The first stage in `<InvokeAIUI />`, before we set up redux (and therefore before we have access to the user's configured logging setup). In this stage, we use the overrides or default values. The second stage is in `<App />`, after we set up redux, via `useSyncLoggingConfig`. In this stage, we use the overrides or the user's configured logging setup. This hook also handles pushing changes made by the user into localstorage. Other changes: - Extract logging config to util function - Remove the `useEffect` from `SettingsModal` that was changing the logging settings - Remove extraneous log effects from `useLogger` - Export new `LoggingOverrides` type
10 lines
774 B
TypeScript
10 lines
774 B
TypeScript
export { default as InvokeAIUI } from './app/components/InvokeAIUI';
|
|
export type { StudioInitAction } from './app/hooks/useStudioInitAction';
|
|
export type { LoggingOverrides } from './app/logging/logger';
|
|
export type { PartialAppConfig } from './app/types/invokeai';
|
|
export { default as ParamMainModelSelect } from './features/parameters/components/MainModel/ParamMainModelSelect';
|
|
export { default as HotkeysModal } from './features/system/components/HotkeysModal/HotkeysModal';
|
|
export { default as InvokeAiLogoComponent } from './features/system/components/InvokeAILogoComponent';
|
|
export { default as SettingsModal } from './features/system/components/SettingsModal/SettingsModal';
|
|
export { default as StatusIndicator } from './features/system/components/StatusIndicator';
|