mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-10 03:13:32 -07:00
Fix Windows mpv logging and add log export (#88)
This commit is contained in:
+12
-1
@@ -93,6 +93,14 @@ export interface UpdatesConfig {
|
||||
channel?: UpdateChannel;
|
||||
}
|
||||
|
||||
export type LogRotation = number;
|
||||
|
||||
export interface LogFilesConfig {
|
||||
app?: boolean;
|
||||
launcher?: boolean;
|
||||
mpv?: boolean;
|
||||
}
|
||||
|
||||
export interface ShortcutsConfig {
|
||||
toggleVisibleOverlayGlobal?: string | null;
|
||||
copySubtitle?: string | null;
|
||||
@@ -143,6 +151,8 @@ export interface Config {
|
||||
updates?: UpdatesConfig;
|
||||
logging?: {
|
||||
level?: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation?: LogRotation;
|
||||
files?: LogFilesConfig;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -286,7 +296,6 @@ export interface ResolvedConfig {
|
||||
enabled: boolean;
|
||||
accessToken: string;
|
||||
characterDictionary: {
|
||||
enabled: boolean;
|
||||
refreshTtlHours: number;
|
||||
maxLoaded: number;
|
||||
evictionPolicy: AnilistCharacterDictionaryEvictionPolicy;
|
||||
@@ -372,6 +381,8 @@ export interface ResolvedConfig {
|
||||
updates: Required<UpdatesConfig>;
|
||||
logging: {
|
||||
level: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation: LogRotation;
|
||||
files: Required<LogFilesConfig>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user