Skip to content

Enhancement: Replace logger dependency with console-only logging + ZIP export #1210

@Gero1999

Description

@Gero1999

Description

logger is currently in Imports (moved there by #1209 to fix #1207). It is used for ~40 calls across the Shiny app (log_info, log_debug, log_warn, log_error, log_trace) and writes log files to a ./log directory on the server filesystem.

Writing log files to the filesystem is problematic in hosted/containerized environments and adds a dependency that could be avoided.

Proposed change

  1. Replace logger with a lightweight internal logging wrapper that outputs to the R console via message().
  2. Capture the session log in memory so it can be included in the ZIP export when the user clicks "Save".
  3. Move logger back to Suggests in DESCRIPTION.

Expected behaviour

  • Log messages appear in the R console (stdout/stderr) as before.
  • No log files are written to the filesystem.
  • The session log is available as a text file in the ZIP export.
  • The app works without logger installed.

Related

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions