- Created migration to set up app_log table for storing application logs. - Added AppLog entity and repository for ORM handling of logs. - Developed DbLogger service to persist logs of level WARNING and above to the database while maintaining existing logging behavior. - Implemented tests for admin log retrieval and DbLogger functionality to ensure proper logging behavior. - Enhanced logging context sanitization for better error tracking.
1 line
9.7 KiB
JSON
1 line
9.7 KiB
JSON
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_payment_gateway_sepgateway_php", "label": "SepGateway.php", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L1"}, {"id": "gateway_sepgateway_sepgateway", "label": "SepGateway", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L9"}, {"id": "paymentgatewayinterface", "label": "PaymentGatewayInterface", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "gateway_sepgateway_sepgateway_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L14"}, {"id": "gateway_sepgateway_sepgateway_getname", "label": ".getName()", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L21"}, {"id": "gateway_sepgateway_sepgateway_cfg", "label": ".cfg()", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L23"}, {"id": "gateway_sepgateway_sepgateway_initiate", "label": ".initiate()", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L28"}, {"id": "paymentinitresult", "label": "PaymentInitResult", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L28"}, {"id": "gateway_sepgateway_sepgateway_verify", "label": ".verify()", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L57"}, {"id": "paymentverifyresult", "label": "PaymentVerifyResult", "file_type": "code", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L57"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_payment_gateway_sepgateway_php", "target": "siteconfigrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_payment_gateway_sepgateway_php", "target": "loggerinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_payment_gateway_sepgateway_php", "target": "httpclientinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_payment_gateway_sepgateway_php", "target": "gateway_sepgateway_sepgateway", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L9", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway", "target": "paymentgatewayinterface", "relation": "implements", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L9", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway", "target": "gateway_sepgateway_sepgateway_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L14", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway", "target": "gateway_sepgateway_sepgateway_getname", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L21", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway", "target": "gateway_sepgateway_sepgateway_cfg", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L23", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway", "target": "gateway_sepgateway_sepgateway_initiate", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L28", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway_initiate", "target": "paymentinitresult", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L28", "weight": 1.0, "context": "return_type"}, {"source": "gateway_sepgateway_sepgateway", "target": "gateway_sepgateway_sepgateway_verify", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L57", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway_verify", "target": "paymentverifyresult", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L57", "weight": 1.0, "context": "return_type"}, {"source": "gateway_sepgateway_sepgateway_initiate", "target": "gateway_sepgateway_sepgateway_cfg", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L34", "weight": 1.0}, {"source": "gateway_sepgateway_sepgateway_verify", "target": "gateway_sepgateway_sepgateway_cfg", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Payment/Gateway/SepGateway.php", "source_location": "L73", "weight": 1.0}], "raw_calls": [{"caller_nid": "gateway_sepgateway_sepgateway_cfg", "callee": "get", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L25", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "request", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L31", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "toArray", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L42", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L52", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "sprintf", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L52", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L52", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "getFile", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L52", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "getLine", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L52", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_initiate", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L53", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "strtolower", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L60", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "strtolower", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L63", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "request", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L70", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "toArray", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L79", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "error", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L90", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "sprintf", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L90", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L90", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "getFile", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L90", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "getLine", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L90", "receiver": null}, {"caller_nid": "gateway_sepgateway_sepgateway_verify", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Payment/Gateway/SepGateway.php", "source_location": "L91", "receiver": null}]} |