|
|
@ -256,10 +256,12 @@ function openim::log::test_log() {
|
|
|
|
|
|
|
|
|
|
|
|
function openim::log::print_blue() {
|
|
|
|
function openim::log::print_blue() {
|
|
|
|
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
|
|
|
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
|
|
|
echo -e "\033[0;36m[$current_time] $1\033[0m"
|
|
|
|
echo -e "[$current_time]"
|
|
|
|
|
|
|
|
echo -e "\033[0;34m$1\033[0m"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openim::log::colorless() {
|
|
|
|
openim::log::colorless() {
|
|
|
|
local V="${V:-0}"
|
|
|
|
local V="${V:-0}"
|
|
|
|
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
|
|
|
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
|
|
|