log.phtml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php /** @var \Dotdigitalgroup\Email\Block\Adminhtml\Logviewer $block */?>
  2. <div class="switcher">
  3. <label style="font-weight: bold; padding-right: 10px;" for="connector-log-selector">
  4. <?= $block->escapeHtml(__('Select Log File:')); ?>
  5. </label>
  6. <select id="connector-log-selector" style="width: 20em">
  7. <option value="connector"><?= $block->escapeHtml(__('Marketing Automation Log')); ?></option>
  8. <option value="system"><?= $block->escapeHtml(__('Magento System Log')); ?></option>
  9. <option value="exception"><?= $block->escapeHtml(__('Magento Exception Log')); ?></option>
  10. <option value="debug"><?= $block->escapeHtml(__('Magento Debug Log')); ?></option>
  11. </select>
  12. <button id="connector-log-reloader" style="margin-left: 5px;">
  13. <span><?= $block->escapeHtml(__('Reload')); ?></span>
  14. </button>
  15. </div>
  16. <div style="padding-top: 25px;">
  17. <h3 id="connector-log-header" style="border-bottom: 4px solid #dfdfdf; color: #eb5e00;">
  18. <?= $block->escapeHtml(__('Marketing Automation Log')); ?>
  19. </h3>
  20. </div>
  21. <div style="border: 4px solid #dfdfdf; overflow: hidden; height: 510px; padding: 5px;">
  22. <div id="log_data"
  23. style="width:100%;height:500px;overflow:auto;margin:0;padding:3px;background:black;color:#2EC029;
  24. font:normal 11px Lucida Console, Courier New, serif;">
  25. <?php /** $block \Dotdigitalgroup\Email\Block\Adminhtml\Logviewer */ ?>
  26. <?= /* @noEscape */ $block->getLogFileContent(); ?>
  27. </div>
  28. </div>
  29. <script type="text/x-magento-init">
  30. {
  31. "*": {
  32. "Dotdigitalgroup_Email/js/logUpdater":{
  33. "url":"<?= $block->escapeUrl($block->getAjaxUrl()) ?>"
  34. }
  35. }
  36. }
  37. </script>