Changeset 1240678
- Timestamp:
- 09/08/2015 01:56:13 PM (9 years ago)
- Location:
- stream-to-papertrail
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stream-to-papertrail/trunk/inc/class-stream-papertrail-api.php
r1239660 r1240678 34 34 'title' => esc_html__( 'Destination', 'stream-papertrail' ), 35 35 'type' => 'text', 36 'desc' => esc_html__( 'You can check your destination on the "Account" page of your Papertrail dashboard, under "Log Destinations". It should be in the following format: logs1.papertrailapp.com:12345', 'stream-papertrail' ),36 'desc' => ' ), 37 37 'default' => '', 38 ),39 array(40 'name' => 'program',41 'title' => esc_html__( 'Program', 'stream-papertrail' ),42 'type' => 'text',43 'desc' => esc_html__( '', 'stream-papertrail' ),44 'default' => 'wordpress',45 ),46 array(47 'name' => 'component',48 'title' => esc_html__( 'Component', 'stream-papertrail' ),49 'type' => 'text',50 'desc' => esc_html__( '', 'stream-papertrail' ),51 'default' => 'stream',52 38 ), 53 39 array( … … 80 66 } 81 67 82 $this->send_remote_syslog( json_encode( $record ));68 $this->send_remote_syslog( ); 83 69 84 70 } … … 90 76 91 77 $destination = array_combine( array( 'hostname', 'port' ), explode( ':', $this->options['papertrail_destination'] ) ); 92 $program = $this->options['papertrail_program']; 93 $component = $this->options['papertrail_component']; 78 79 $program = parse_url( is_multisite() ? network_site_url() : site_url(), PHP_URL_HOST ); 80 $component = sanitize_title( 'stream-' . $message['connector'] ); 81 82 $message = json_encode( $message ); 94 83 95 84 $syslog_message = '<22>' . date( 'M d H:i:s ' ) . $program . ' ' . $component . ': ' . $this->format( $message ); … … 158 147 159 148 $class = 'error'; 160 $message = 'T he "Stream to Papertrail" plugin requires that you set a Destination in your <a href="' . admin_url( 'admin.php?page=wp_stream_settings' ) . '">Stream Settings</a> before it can log to Papertrail.';149 $message = 'T.'; 161 150 echo '<div class="' . $class . '"><p>' . $message . '</p></div>'; 162 151 -
stream-to-papertrail/trunk/readme.md
r1239717 r1240678 9 9 **Requires at least:** 4.3 10 10 **Tested up to:** 4.3 11 **Stable tag:** 0.0. 411 **Stable tag:** 0.0. 12 12 **License:** [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 13 13 … … 24 24 3. Set the Destination for Papertrail on your Stream settings screen. 25 25 26 27 28 29 30 31 26 32 ## Changelog ## 33 34 35 36 37 38 27 39 28 40 ### 0.0.4 - September 7, 2015 ### -
stream-to-papertrail/trunk/readme.txt
r1239717 r1240678 4 4 Requires at least: 4.3 5 5 Tested up to: 4.3 6 Stable tag: 0.0. 46 Stable tag: 0.0. 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 22 22 3. Set the Destination for Papertrail on your Stream settings screen. 23 23 24 25 26 27 24 28 == Changelog == 29 30 31 32 33 34 35 25 36 26 37 = 0.0.4 - September 7, 2015 = -
stream-to-papertrail/trunk/stream-papertrail.php
r1239660 r1240678 5 5 * Description: Send Stream logs to Papertrail for safe-keeping. 6 6 * Author: Japh 7 * Version: 0.0. 47 * Version: 0.0. 8 8 * Author URI: http://japh.com.au/ 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.