WordPress.org

Ready to get started?Download WordPress

Forums

LogStore
Fix for compact() call making log entries empty (4 posts)

  1. elisee
    Member
    Posted 3 years ago #

    Hi!

    I tried the LogStore plugin, looks like it could be really handy. Unfortunately it doesn't seem to work out-of-the-box.

    I had to change the compact() call in the log() function to:
    $values = apply_filters('logstore_new_entry-'.$this->_name, compact('time', 'message', 'data', 'tag', 'status'));

    Basically I changed all $var to 'var'.

    Hope this helps,
    Thanks for your work!

    Elisée

    http://wordpress.org/extend/plugins/logstore/

  2. elisee
    Member
    Posted 3 years ago #

    Oh and btw, the documentation in Other notes has the log() arguments wrong: status comes after tag, not before!

  3. lkraav
    Member
    Posted 2 years ago #

    For 3.3.1 you also need to have:

    admin/includes/class-logstore-list-table.php:
    19 parent::__construct( array(

  4. lkraav
    Member
    Posted 2 years ago #

    Here some better CSS for the admin:

    http://stackoverflow.com/questions/1713048/how-to-style-dt-and-dd-so-they-are-on-the-same-line

    dl.logdata {
        -moz-border-radius: 4px 4px 4px 4px;
        margin: 1px;
        padding: 3px 3px 1px 3px;
        background-color: #FFFFFF;
        border: 1px solid #DFDFDF;
        overflow: hidden;
        width: 100%;
    }
    
    dl.logdata * {
        border: none;
        padding: 0;
        margin: 0;
    }
    
    dl.logdata dt {
        clear: left;
        float: left;
        font-weight: bold;
        width: 30%;
    }
    
    dl.logdata dd {
        padding-left: 30%;
        width: 70%;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic