# Log4JSToOTELAppenderConfig

**Kind**: interface | **Module**: [Insights](https://docs.interop.io/desktop/reference/javascript/insights/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/insights/log4jstootelappenderconfig/index.html

This interface describes the log4js appender configuration that controls the

## Properties

- **`layout`** (`Layout`, optional)
  log4js layout to use for structuring the log entries. If not specified, uses MessagePassThroughLayout.
- **`logErrorsInConsole`** (`boolean`, optional) default: `true`
  Whether errors in the
- **`maxRecordsBeforeOTELActive`** (`number`, optional) default: `10000`
  Maximum number of log records to store in memory before the OTEL SDK has finished initializing.
  Use -1 for an infinite number.
- **`maxTimeBeforeOTELActiveMs`** (`number`, optional) default: `-1`
  Maximum duration of time to store log entries in memory before the OTEL SDK has finished initializing.
  Use -1 for an infinite duration.

## Related types

- [Layout](https://docs.interop.io/desktop/reference/javascript/layouts/layout/index.md)
