• Resolved Tim Nolte

    (@tnolte)


    There doesn’t seem to be any additional information on doing things like changing the log file location, with the intent on sending to a system syslog.

    It would be nice if there was some more documentation specifically for the WordPress plugin. The Trunc site doesn’t seem to have anything specific for the WordPress plugin just a lot about the Trunc service.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Tim Nolte

    (@tnolte)

    OK so after looking at the plugin code in SVN it appears that this is not possible.

    define('TRUNCLOGGING_DIR', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/');
    define('TRUNCLOGGING_FILE', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/trunc_logging.php');
    Thread Starter Tim Nolte

    (@tnolte)

    It would be nice if TRUNCLOGGING_DIR & TRUNCLOGGING_FILE had checks to determine if they were already defined or not to allow being overridden. Additionally, why isn’t TRUNCLOGGING_FILE using TRUNCLOGGING_DIR so as not to be repeating code?

    Thread Starter Tim Nolte

    (@tnolte)

    I ended up patching the plugin by simply making the following change:

    -define('TRUNCLOGGING_DIR', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/');
    -define('TRUNCLOGGING_FILE', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/trunc_logging.php');
    +defined( 'TRUNCLOGGING_DIR' ) || define('TRUNCLOGGING_DIR', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/');
    +defined( 'TRUNCLOGGING_FILE' ) || define('TRUNCLOGGING_FILE', dirname(dirname(plugin_dir_path(__FILE__))) . '/uploads/logging/trunc_logging.php');
    Plugin Author Daniel Cid

    (@dcid)

    Thanks for the suggestions. Added it to v1.0.4

    Thread Starter Tim Nolte

    (@tnolte)

    @dcid thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where is More Documentation, Like Changing Logfile Location?’ is closed to new replies.