This function fetches and splits the log entries, then returns the last 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-02 05:59:08.66505: seasonder_createSeaSondeRAPM: APM object created successfully."
#> [2] "[INFO] 2025-08-02 05:59:13.65949: seasonder_createSeaSondeRAPM: APM object created successfully."
#> [3] "[INFO] 2025-08-02 05:59:13.868322: new_SeaSondeRCS: SeaSondeRCS object created successfully."
#> [4] "[INFO] 2025-08-02 05:59:13.8837: seasonder_runMUSIC: MUSIC algorithm started."
#> [5] "[INFO] 2025-08-02 05:59:13.990728: seasonder_runMUSIC: MUSIC algorithm finished."
#> [6] "[INFO] 2025-08-02 05:59:15.023796: seasonder_createSeaSondeRAPM: APM object created successfully."