• Resolved Viktor Szépe

    (@szepeviktor)


    Is it possible to get simpler log, fewer log items?

    2015-05-12 15:39 viktor 92.249.163.114 Plugin activated: Sucuri Scanner custom settings (v2.1.0; sucuri-cleanup/sucuri-cleanup.php)
    2015-05-12 15:39 viktor 92.249.163.114 Post deleted; identifier: 626
    2015-05-12 15:39 viktor 92.249.163.114 Media file added; identifier: 626; name: sucuri-cleanup[1].zip; type:
    2015-05-12 15:39 viktor 92.249.163.114 Plugin installed: sucuri-cleanup[1].zip

    https://wordpress.org/plugins/sucuri-scanner/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Viktor Szépe

    (@szepeviktor)

    Maybe it is insecure to make this kind of exception.

    To implement this suggestion I would have to add multiple validations before the registration of each event log just to check if the other logs were already sent to the remote server, this would translate to an increment in the number of HTTP requests (which may affect the bandwidth limit of some low-cost servers) and the time that takes to register some of these actions.

    Also, in this specific cases (and probably with other actions) each log represents a different events, I understand that this is the same action but WordPress divide it in multiple steps. Here we see that it was requested the installation of a new plugin, then the upload of a Zip file, then the deletion of an entry from the posts database table, then the activation of the new plugin. The process may fail in any moment so I would prefer to keep the plugin logging these events as independent logs even when they all (merged) represent the same action.

    Thread Starter Viktor Szépe

    (@szepeviktor)

    Thank you for your answer.

    I understand your point.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Simpler logginf uploaded plugins’ is closed to new replies.