From 5a2f504d18192e92da79f95ab367f3b07ddf7da0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 12 Nov 2015 18:03:48 +0100 Subject: [PATCH] Add logger page --- source/_components/logger.markdown | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 source/_components/logger.markdown diff --git a/source/_components/logger.markdown b/source/_components/logger.markdown new file mode 100644 index 00000000000..36e3d1058cf --- /dev/null +++ b/source/_components/logger.markdown @@ -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 +