Skip to content

"extension-log" File Appender

This appender manages extension execution logs.

Configuration example:

xml
<File name="extension-log" fileName="logs/extension_execution.log">
    <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p - %m%n"/>
</File>

Example Log :

text
2025-02-05 17:39:51 INFO  - 564fb2fd-8ffa-5d81-a696-c56eba454d41 One Drive Extension TransferUploadReady community-one-drive/paris.jpg [COMPLETED]

Log details:

  1. 2025-02-05 17:39:51 : Date and time of the log
  2. INFO : Log level
  3. - 564fb2fd-8ffa-5d81-a696-c56eba454d41 One Drive Extension TransferUploadReady community-one-drive/paris.jpg [COMPLETED] : Log message

Basic Configuration

  • Name: extension-log
  • Output file: logs/extension_execution.log

Log Format

The pattern %d{yyyy-MM-dd HH:mm:ss} %-5p - %m%n defines the following format:

  • %d{yyyy-MM-dd HH:mm:ss} : Date and time in specified format
  • %-5p : Log level aligned to 5 characters
  • %m : Log message
  • %n : Line break

Characteristics

  • Single file without rotation
  • Continuous log accumulation
  • Ideal for extension monitoring where complete history retention is important

References