mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 22:36:51 +00:00
Add logger page
This commit is contained in:
parent
2835420a95
commit
5a2f504d18
51
source/_components/logger.markdown
Normal file
51
source/_components/logger.markdown
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
layout: component
|
||||||
|
title: "Logger"
|
||||||
|
description: "Instructions how to enable the logger component for Home Assistant."
|
||||||
|
date: 2015-11-12 17:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
ha_category: "Other"
|
||||||
|
---
|
||||||
|
|
||||||
|
The logger component let one define the level of logging activities in Home Assistant.
|
||||||
|
|
||||||
|
To enable the logger in your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
|
By default log all messages and ignore log event lowest than critical for custom omponents.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
logger:
|
||||||
|
default: info
|
||||||
|
logs:
|
||||||
|
homeassistant.components.device_tracker: critical
|
||||||
|
homeassistant.components.camera: critical
|
||||||
|
```
|
||||||
|
|
||||||
|
By default ignore all messages lowest than critical and log event for custom components.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
logger:
|
||||||
|
default: critical
|
||||||
|
logs:
|
||||||
|
homeassistant.components: info
|
||||||
|
homeassistant.components.rfxtrx: debug
|
||||||
|
homeassistant.components.device_tracker: critical
|
||||||
|
homeassistant.components.camera: critical
|
||||||
|
```
|
||||||
|
|
||||||
|
Possible log severities are:
|
||||||
|
|
||||||
|
- citical
|
||||||
|
- fatal
|
||||||
|
- error
|
||||||
|
- warning
|
||||||
|
- warn
|
||||||
|
- info
|
||||||
|
- debug
|
||||||
|
- notset
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user