# Enable logging and monitoring · Chromia Docs (concept)

> To enable Prometheus, add addmetrics.prometheus.port=9190 to the node-config.system.properties file.

Source: https://docs.chromia.com/ecosystem/providers/nodes/logging/

# Enable logging and monitoring

On this page

* [Prometheus](#prometheus)
* [Generic logs](#generic-logs)

## Prometheus

To enable Prometheus, add `addmetrics.prometheus.port=9190` to the `node-config.system.properties` file. For guidance on
setting up alerts and understanding the available metrics, see the [Set up Prometheus monitoring](https://docs.chromia.com/ecosystem/providers/nodes/setup-prometheus/)
topic.

## Generic logs

You have access to system logs in all containers and can set the log level to your desired level using the `log4j2.yml`
file.

However, we do not recommend keeping the log level set to debug for extended periods, as this generates a large volume
of logs and can quickly fill up disk space. Place this file in the mounted directory where all other node files are
located: `/data/chromia/node/node-mounted-files`.

Terminal

```
Configuration:
  name: Default
  monitorInterval: 30 # sec.

  Appenders:
    Console:
      name: ConsoleAppender
      target: SYSTEM_OUT
      JSONLayout:
        complete: false
        compact: true
        eventEol: true
        stacktraceAsString: true
        properties: true

  Loggers:
    Root:
      level: warn
      AppenderRef:
        - ref: ConsoleAppender

    Logger:
      - name: net.postchain
        level: info
        additivity: false
        AppenderRef:
          - ref: ConsoleAppender
```

[View this page on docs.chromia.com](https://docs.chromia.com/ecosystem/providers/nodes/logging/)Content mirrored from the live docs
