@@ -10,6 +10,7 @@ namespace p2c::client::util::cli
1010 {
1111 private:
1212 CLI::CheckedTransformer logLevelTf_{ log::GetLevelMapNarrow (), CLI::ignore_case };
13+ CLI::CheckedTransformer logVmodTf_{ log::GetVerboseModuleMapNarrow (), CLI::ignore_case };
1314
1415 private: Group gd_{ this , " Debugging" , " Aids in debugging this tool" }; public:
1516 Option<std::string> url{ this , " --p2c-url" , " " , " URL to load instead of app files" };
@@ -29,6 +30,7 @@ namespace p2c::client::util::cli
2930 Option<std::string> logDenyList{ this , " --p2c-log-deny-list" , " " , " Path to log deny list (with trace overrides)" , CLI::ExistingFile };
3031 Option<std::string> logAllowList{ this , " --p2c-log-allow-list" , " " , " Path to log allow list (with trace overrides)" , CLI::ExistingFile };
3132 Option<std::string> logFolder{ this , " --p2c-log-folder" , " " , " Path to directory in which to store log files" , CLI::ExistingDirectory };
33+ Option<std::vector<log::V>> logVerboseModules{ this , " --p2c-log-verbose-modules" , {}, " Verbose logging modules to enable" , logVmodTf_ };
3234
3335 private: Group gi_{ this , " Internal" , " Internal options, do not supply manually" }; public:
3436 Option<std::string> cefType{ this , " --type" , " " , " Type of the current chromium process" };
@@ -40,7 +42,7 @@ namespace p2c::client::util::cli
4042
4143 private:
4244 MutualExclusion excl_{ logDenyList, logAllowList };
43- NoForward noForward_{ cefType, logPipeName };
45+ NoForward noForward_{ cefType, logPipeName, logVerboseModules };
4446 AllowExtras ext_{ this };
4547 };
4648}
0 commit comments