diff --git a/capa/capabilities/common.py b/capa/capabilities/common.py index f20e26152..a73f40afe 100644 --- a/capa/capabilities/common.py +++ b/capa/capabilities/common.py @@ -16,7 +16,7 @@ from capa.features.address import NO_ADDRESS from capa.features.extractors.base_extractor import FeatureExtractor, StaticFeatureExtractor, DynamicFeatureExtractor -logger = logging.getLogger("capa") +logger = logging.getLogger(__name__) def find_file_capabilities(ruleset: RuleSet, extractor: FeatureExtractor, function_features: FeatureSet): diff --git a/capa/capabilities/dynamic.py b/capa/capabilities/dynamic.py index 8c503cde9..23bfde4ac 100644 --- a/capa/capabilities/dynamic.py +++ b/capa/capabilities/dynamic.py @@ -22,7 +22,7 @@ from capa.capabilities.common import find_file_capabilities from capa.features.extractors.base_extractor import CallHandle, ThreadHandle, ProcessHandle, DynamicFeatureExtractor -logger = logging.getLogger("capa") +logger = logging.getLogger(__name__) def find_call_capabilities( diff --git a/capa/capabilities/static.py b/capa/capabilities/static.py index f072ed208..a522a29da 100644 --- a/capa/capabilities/static.py +++ b/capa/capabilities/static.py @@ -23,7 +23,7 @@ from capa.capabilities.common import find_file_capabilities from capa.features.extractors.base_extractor import BBHandle, InsnHandle, FunctionHandle, StaticFeatureExtractor -logger = logging.getLogger("capa") +logger = logging.getLogger(__name__) def find_instruction_capabilities(