ajouter les nano-secondes à la date

This commit is contained in:
Jephté Clain 2023-10-21 20:07:32 +04:00
parent 2e037cfa68
commit 4a0006724e
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ function uecho_() { tooenc_ "$*"; }
export NULIB_ELOG_DATE NULIB_ELOG_MYNAME
function __edate() {
[ -n "$NULIB_ELOG_DATE" ] || return
local prefix="$(date +"[%d/%m/%Y-%H:%M:%S] ")"
local prefix="$(date +"[%F %T.%N] ")"
[ -n "$NULIB_ELOG_MYNAME" ] && prefix="$prefix$MYNAME "
echo "$prefix"
}