PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/app/helpers/cron_log_helper.php

https://bitbucket.org/nanomites_webdev/heroframework
PHP | 20 lines | 8 code | 3 blank | 9 comment | 0 complexity | b4563984f6f152e49f38c2acd481e4dd MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, GPL-2.0
  1. <?php
  2. /**
  3. * Cron Log
  4. *
  5. * Log a note during the processing of your cron hook.
  6. *
  7. * @param string $message
  8. *
  9. * @return void
  10. */
  11. function cron_log ($message) {
  12. log_message('debug', $message);
  13. echo '<div style="border-bottom: 1px solid #dedede; padding: 10px 25px; font-family: Monaco, Courier New, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace; color: #333; background-color: #f0f0f0; text-shadow: 0px 1px #fff">
  14. ' . $message . '
  15. </div>';
  16. return;
  17. }