Add logger page

This commit is contained in:
Fabian Affolter 2015-11-12 18:03:48 +01:00
parent 2835420a95
commit 5a2f504d18

View 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