control log level

This commit is contained in:
Fabian Freund
2025-08-11 10:33:20 +02:00
parent 70ef78653e
commit cf3da71ca5
12 changed files with 259 additions and 180 deletions
@@ -732,6 +732,8 @@ class ShareInternetResourceState {
);
}
enum LogLevel { debug, info, warn, error }
@ConfigurePigeon(
PigeonOptions(
dartOut: 'lib/src/pigeons/gecko.g.dart',
@@ -746,7 +748,7 @@ class ShareInternetResourceState {
)
@HostApi()
abstract class GeckoBrowserApi {
void initialize();
void initialize(LogLevel logLevel);
bool showNativeFragment();
void onTrimMemory(int level);
}