2## @brief Input output functions
4(( $EC2PINIT_IO_INCLUDED )) &&
return
8## Date format for IO functions
13## @brief Return current date and time
14## @retval date as string
20## @brief Print a message
21## @param ... message arguments
25## ec2pinit_debug=$DEBUG_INFO
27## # 2022-06-22 18:46:57 - INFO: hello
31 printf
"$(io_timestamp) - INFO: %s\n" "$@" >&2
35## @brief Print a warning message
36## @param ... message arguments
40## ec2pinit_debug=$DEBUG_WARN
41## io_warn "uh oh... $var"
42## # 2022-06-22 18:46:57 - WARN: uh oh... hello
46 printf
"$(io_timestamp) - WARN: %s\n" "$@" >&2
50## @brief Print an error message
51## @param ... message arguments
55## ec2pinit_debug=$DEBUG_ERROR
56## io_error "oh no... $var"
57## # 2022-06-22 18:46:57 - ERROR: oh no... hello
61 printf
"$(io_timestamp) - ERROR: %s\n" "$@" >&2
Exported String io_datefmt
Date format for IO functions.
io_timestamp()
Return current date and time.
io_warn(...)
Print a warning message.
io_info(...)
Print a message.
io_error(...)
Print an error message.
Exported String DEBUG_WARN
FLAG - Print warning messages.
Exported String ec2pinit_debug
Debug output control.
Exported String DEBUG_ERROR
FLAG - Print error messages.
Exported String DEBUG_INFO
FLAG - Print info messages.