{"id":35069,"date":"2015-03-13T08:22:00","date_gmt":"2015-03-13T08:22:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-mylogger\/"},"modified":"2015-03-16T14:56:08","modified_gmt":"2015-03-16T14:56:08","slug":"wp-mylogger","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-mylogger\/","author":14315722,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"trunk","tested":"3.6.1","requires":"3.5.1","requires_php":"","requires_plugins":"","header_name":"My Logger","header_author":"","header_description":"","assets_banners_color":"fbfbfb","last_updated":"2015-03-16 14:56:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":956,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1113973","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1112820","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1112819","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"\/assets\/banner-772x250.png"}},"plugin_section":[],"plugin_tags":[69881,94,2275,8537],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-35069","plugin","type-plugin","status-closed","hentry","plugin_tags-appenders","plugin_tags-debug","plugin_tags-developer","plugin_tags-logger","plugin_category-utilities-and-tools","plugin_committers-paniko"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-mylogger_fbfbfb.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>To use the custom appenders, add this code in your init plugin for example: Choose among appenders (LoggerAppenderDailyFile, LoggerAppenderRollingFile, LoggerAppenderFile, LoggerAppenderMail, LoggerAppenderMailEvent), for each type you must \nspecify the relative parameters, how to official documentation of log4php.<\/p>\n <ul>\n<li><p>For rolling file appenders:<\/p>\n  '1MB',         My_Logger::ROLLING_APPENDER         =&gt; true,         My_Logger::ROLLING_MAX_BACKUP_INDEX =&gt; 5     );      $mylogger = My_Logger::get_instance(\"\", My_Logger::ROLLING, $parameters);     $this-&gt;logger = $mylogger-&gt;getLogger();      \/\/for debug you add:      $this-&gt;logger-&gt;debug($parameters);     $this-&gt;logger-&gt;debug(\"test\"); ?&gt;<\/li>\n<li><p>For <em>mail<\/em> appender:  '',                     My_Logger::MAIL_TO          =&gt; '',                     My_Logger::MAIL_SUBJECT     =&gt; '',                     My_Logger::THRESHOLD        =&gt; My_Logger::LEVEL_DEBUG\/\/6: Sets the root logger level to DEBUG. This means that logging requests with the level lower than DEBUG will not be logged by the root logger.             );     \n            $mylogger = My_Logger::get_instance(\"\", My_Logger::MAIL, $parameters);     ?&gt;<\/p><\/li>\n<\/ul>\n <p>** SET Logger threshold ** A level describes the severity of a logging message. There are six levels, show here in descending order of severity. You can set level of logger, add the parameter:<\/p>\n <ul>\n<li>FATAL Highest Very severe error events that will presumably lead the application to abort.<\/li>\n<li>ERROR ... Error events that might still allow the application to continue running.<\/li>\n<li>WARN  ... Potentially harmful situations which still allow the application to continue running.<\/li>\n<li>INFO  ... Informational messages that highlight the progress of the application at coarse-grained level.<\/li>\n<li>DEBUG ... Fine-grained informational events that are most useful to debug an application.<\/li>\n<li>TRACE Lowest  Finest-grained informational events.<\/li>\n<\/ul>\n <p>If do you want put a logger in frontend, add this code in template script:      '1MB',                 My_Logger::ROLLING_APPENDER         =&gt; true,                 My_Logger::ROLLING_MAX_BACKUP_INDEX =&gt; 5,                 My_Logger::THRESHOLD    =&gt; My_Logger::LEVEL_DEBUG             );     \n            $mylogger = new My_Logger(\"\", My_Logger::ROLLING, $parameters);     \n            $logger = $mylogger-&gt;getLogger();             $logger-&gt;debug(\"test my logger\");     ?&gt;<\/p>\n <p>For more info read the API documents of log4php:<a href=\"http:\/\/logging.apache.org\/log4php\/docs\/appenders.html\" title=\"API Documents\">Apache Log4php Docs<\/a><\/p>\n <p>** Configuration ** You can set configuration path file to export your logger, in the plugin's settings.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wp-mylogger.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n <ul>\n<li>First version with integration a custom appender log4php.<\/li>\n<\/ul>","raw_excerpt":"This plugin use Apache log4php\u2122 libary for create custom loggers on your file system or mail account. Is possible specify the type (rolling, daily), n &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35069"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/paniko"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35069"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35069"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35069"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35069"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35069"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}