android - ionic3 中的 Log.e()、Log.d()?
问题描述
我想像在 android studio 中使用 Log.d 和 Log.3 一样获取日志。有什么方法可以在 ionic 中执行 Log.e() 和 Log.d() 吗?除了使用 console.log()?
解决方案
您可以使用以下内容进行调试以及使用控制台进行错误处理
console.log Black color text with no icon
console.info Blue color text with icon
console.debug Pure black color text
console.warn Yellow color text with icon
console.error Red Color text with icon
console.error() method writes an error message to the console.
console.info() method outputs an informational message to the console
console.warn() method outputs a warning message to the console
有关更多信息,请查看链接
推荐阅读
- c# - 如何将两个列表相互组合?
- python - python循环遍历图像列表并将它们分组合并
- sql - 如何在熊猫的postgresql中对多个表进行聚合和分组
- typescript - Typescript 中的复杂类型
- javascript - javascript else 语句仅在正确填写所有内容时才返回 true
- angular - ./server.ts 中的错误未找到模块:错误:无法解析“./dist/server/main.bundle”
- php - 解析错误:语法错误,意外的 ';' 在第 24 行的 /etc/zabbix/web/zabbix.conf.php 中
- android - 适用于 Android 的 C/C++ 内存分配边界对齐
- ruby-on-rails - 如何 RSpec 测试设置的错误通知
- ajax - 如何为我的 ajax 获取输入值?