Skip to content

docs: document session log contents#1222

Open
Gero1999 wants to merge 4 commits into1210-enhancement/replace-logger-with-consolefrom
1220-enhancement/document-session-logs
Open

docs: document session log contents#1222
Gero1999 wants to merge 4 commits into1210-enhancement/replace-logger-with-consolefrom
1220-enhancement/document-session-logs

Conversation

@Gero1999
Copy link
Copy Markdown
Collaborator

@Gero1999 Gero1999 commented Apr 14, 2026

Issue

Closes #1220 but merges in #1212

Description

Adds documentation for the session log so users and developers understand what session_log.txt contains.

Changes:

  1. Log file header.export_session_log() now prepends a comment block to session_log.txt explaining what the log captures, what it doesn't, the current threshold, visible levels, and a link to the reference page.
  2. Vignettevignettes/session_log.Rmd with a full reference of all logged events organized by workflow stage, log level explanations, and aNCA_LOG_LEVEL configuration.
  3. pkgdown navbar — Added "Session Log Reference" under Developer Resources.
  4. logging.R header — Added scope clarification and reference link to the source file.

Definition of Done

  • Exported session_log.txt starts with a header explaining its contents
  • Developer website includes a Session Log Reference page
  • Header links to the website page for full details

How to test

  1. Run aNCA::run_app(), upload data, run NCA
  2. Export ZIP and open session_log.txt — verify the header block is present
  3. Build the pkgdown site (pkgdown::build_site()) and verify the Session Log Reference page appears under Developer Resources

Contributor checklist

  • Code passes lintr checks
  • Code passes all unit tests
  • New logic covered by unit tests
  • New logic is documented
  • App or package changes are reflected in NEWS
  • Package version is incremented
  • R script works with the new implementation (if applicable)
  • Settings upload works with the new implementation (if applicable)
  • If any .scss change was done, run data-raw/compile_css.R

Notes to reviewer

This PR targets 1210-enhancement/replace-logger-with-console (#1212), not main. It will auto-retarget to main once #1212 is merged.

The vignette references events from both the existing log-points and those added in #1221. If #1221 is not merged first, the NCA Settings / Exclusions rows in the table describe log-points that don't exist yet — but the table is still accurate as a target reference.

Version bump and NEWS entry still needed before merge.

@Gero1999 Gero1999 marked this pull request as ready for review April 14, 2026 14:26
Gero1999 and others added 4 commits April 14, 2026 15:34
Include explanation of what the log captures, current threshold,
visible levels, and a link to the full reference page.

Closes #1220 (partial)

Co-authored-by: Ona <no-reply@ona.com>
Developer website page documenting all logged events by workflow
stage, log levels, and configuration via aNCA_LOG_LEVEL.

Closes #1220 (partial)

Co-authored-by: Ona <no-reply@ona.com>
Add 'Session Log Reference' entry under Developer Resources
in the website navigation.

Closes #1220 (partial)

Co-authored-by: Ona <no-reply@ona.com>
Clarify what the log captures vs. what it does not, and link
to the full session log reference page.

Closes #1220 (partial)

Co-authored-by: Ona <no-reply@ona.com>
@Gero1999 Gero1999 force-pushed the 1220-enhancement/document-session-logs branch from d10e924 to f62eaf2 Compare April 14, 2026 15:34
Copy link
Copy Markdown
Collaborator

@js3110 js3110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice !

Copy link
Copy Markdown
Collaborator

@bachapman bachapman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants