Add logger page
This commit is contained in:
parent
2835420a95
commit
5a2f504d18
1 changed files with 51 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue