• Resolved KostasNi

    (@kostasni)


    Hi Par, thanks for the great plugin!

    I’m wondering, is there a way to generate and auto-update a .log file whenever a change happens and is logged by the plugin. I was thinking something similar to debug.log. Here is an example:

    [2015-07-21 18:31:03] username Updated post “Hello World”
    [2015-07-21 18:25:00] username Updated plugin “Akismet” to 2 from 1

    Thanks

    https://www.ads-software.com/plugins/simple-history/

Viewing 1 replies (of 1 total)
  • Plugin Author eskapism

    (@eskapism)

    You could write such a function yourself. The filter simple_history/log_insert_context could be used as the hook for this:

    /**
     * Filter the context to store for this event/row
     *
     * @since 2.0.29
     *
     * @param array $context Array with all context data to store. Modify and return this.
     * @param array $data Array with data used for parent row.
     */
    $context = apply_filters("simple_history/log_insert_context", $context, $data);
Viewing 1 replies (of 1 total)
  • The topic ‘Generate .log file’ is closed to new replies.