GeezerVison is showing adk.dev — logToTmpFolder | ADK for TypeScript: API Reference - v2.5.0
-
Configures the global ADK logger to write formatted log records to a timestamped
file in the system temporary directory and updates the <prefix>.latest.log
symlink to point to the newest file.
The log directory is restricted to the current user (mode 0o700) and the
log file is created with mode 0o600. If <tmp>/<subFolder> is a symlink,
is not a directory, or is owned by another user, the logs go to
<tmp>/<subFolder>_<uid> instead. Records are written through the file
descriptor opened at creation. The default timestamp includes the
process ID. If the log filename is already taken, a numeric _<n> suffix is
appended so that an existing file is never overwritten. The path of the log
file is printed to stderr.
Returns string
The absolute path to the created log file.