• Enable log

  • Open the server.json file in the conf directory.

  • enable:true or false.When logs are enabled, the mysql database establishes a monthly data table.For example:esb_log_202101
            The mysql database must contain esb_log tables.
            CREATE TABLE `esb_log` (
            `messageID` varchar(50) NOT NULL DEFAULT '',
            `inputDate` bigint(20) DEFAULT NULL,
            `outputDate` bigint(20) DEFAULT NULL,
            `yearOf` int(11) DEFAULT NULL,
            `monthOf` int(11) DEFAULT NULL,
            `dayOf` int(11) DEFAULT NULL,
            `hourOf` int(11) DEFAULT NULL,
            `minuteOf` int(11) DEFAULT NULL,
            `provider` varchar(100) DEFAULT NULL,
            `consumer` varchar(100) DEFAULT NULL,
            `errorMsg` varchar(2000) DEFAULT NULL,
            `requestText` varchar(3000) DEFAULT NULL,
            `responseText` varchar(12000) DEFAULT NULL,
            `sizeOfContent` int(16) DEFAULT NULL,
            PRIMARY KEY (`messageID`),
            KEY `IDX_DATE` (`inputDate`,`outputDate`),
            KEY `IDX_PROVIDER` (`provider`),
            KEY `IDX_CONSUMER` (`consumer`),
            KEY `IDX_DAY` (`dayOf`)
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
           
  • driver、url、user、password:The connection parameters for the mysql database.
  • numberOfThread:The number of log threads.
  • keepDataForMonth:Keep log data for the last few months and other data will be deleted. 0 Keep all data.
  • SN: The user registers and logs in to get the serial number.