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-04-28 09:33:06.48432: seasonder_createSeaSondeRAPM:  APM object created successfully." 
#> [2] "[INFO] 2025-04-28 09:33:11.660984: seasonder_createSeaSondeRAPM:  APM object created successfully."
#> [3] "[INFO] 2025-04-28 09:33:11.876783: new_SeaSondeRCS:  SeaSondeRCS object created successfully."     
#> [4] "[INFO] 2025-04-28 09:33:11.891998: seasonder_runMUSIC:  MUSIC algorithm started."                  
#> [5] "[INFO] 2025-04-28 09:33:12.001749: seasonder_runMUSIC:  MUSIC algorithm finished."                 
#> [6] "[INFO] 2025-04-28 09:33:13.046158: seasonder_createSeaSondeRAPM:  APM object created successfully."