ajouter les nano-secondes à la date
This commit is contained in:
parent
2e037cfa68
commit
4a0006724e
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue