in datajets/stdout-datajet.ts [28:43]
transmitBatch: async (batch: Array<ILogData>) => {
batch.forEach(log => {
const logMethod = (config.logStream !== "auto")
? config.logStream
: (log.stream ?? config.defaultStream);
if (logMethod === "stdout") {
console.log((config.logKey) ? log[config.logKey] : JSON.stringify(log));
}
else if (logMethod === "stderr") {
console.error((config.logKey) ? log[config.logKey] : JSON.stringify(log));
}
});
return true;
}