start.php 494 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * No Logging for Elgg 1.9 - 1.12 and Elgg 2.X
  4. *
  5. * This plugin disables the Elgg system log
  6. *
  7. * (C) iionly 2013
  8. * GNU Public License version 2
  9. *
  10. * https://github.com/iionly
  11. * Contact: iionly@gmx.de
  12. */
  13. elgg_register_event_handler('init','system','no_logging_init');
  14. function no_logging_init(){
  15. // disable the system log
  16. elgg_unregister_event_handler('log', 'systemlog', 'system_log_default_logger');
  17. elgg_unregister_event_handler('all', 'all', 'system_log_listener');
  18. }