alert_message

swpy.lib.utilities.alert_message(message, log_path)

Writes and saves the current time and message in the log file. Time information is saved based on UTC. You can use format code of datetime in the path.

Parameters
  • message (str) – Message to write in log.

  • log_path (str) – Log file path.

Examples

>>> alert_message("log message sample", "./log/%Y/%Y%m%d.log")