Skip to contents

This function fetches and splits the log entries, then returns the last entry.

Usage

seasonder_lastLog(...)

Arguments

...

Arguments passed to seasonder_splitLog.

Value

A character vector representing the last log entry.

Examples

# Enable logging
seasonder_enableLogs()
# Log a test message
seasonder_log("Test log entry", "info")
# Retrieve the last log entry
head(seasonder_lastLog())
#> [1] "[INFO] 2025-08-01 10:01:17.717477: seasonder_createSeaSondeRAPM:  APM object created successfully."
#> [2] "[INFO] 2025-08-01 10:01:22.901964: seasonder_createSeaSondeRAPM:  APM object created successfully."
#> [3] "[INFO] 2025-08-01 10:01:23.114339: new_SeaSondeRCS:  SeaSondeRCS object created successfully."     
#> [4] "[INFO] 2025-08-01 10:01:23.131044: seasonder_runMUSIC:  MUSIC algorithm started."                  
#> [5] "[INFO] 2025-08-01 10:01:23.240711: seasonder_runMUSIC:  MUSIC algorithm finished."                 
#> [6] "[INFO] 2025-08-01 10:01:24.308014: seasonder_createSeaSondeRAPM:  APM object created successfully."