anish
anish
BRBuildShip + Rowy
Created by Abrar on 6/15/2024 in #❓・buildship-help
Logging witihin NodeLogic
Hey @Abrar, you can do this by passing the logging as a parameter to other functions. Check this updated code:
export default async function (
{ inputData }: NodeInputs, // Access values of node input params
{ logging, env }: NodeScriptOptions,
): NodeOutput {
/* Log values while executing the node/workflow */
logging.log(">> Hello From Default!");
someFunc(logging);

return {}
}

function someFunc(logging: NodeScriptOptions["logging"]) {
// This is what i want to do..
logging.log(">> >> Hello from someFunc()");
// I keep getting 'logging is not defined' ...
}
export default async function (
{ inputData }: NodeInputs, // Access values of node input params
{ logging, env }: NodeScriptOptions,
): NodeOutput {
/* Log values while executing the node/workflow */
logging.log(">> Hello From Default!");
someFunc(logging);

return {}
}

function someFunc(logging: NodeScriptOptions["logging"]) {
// This is what i want to do..
logging.log(">> >> Hello from someFunc()");
// I keep getting 'logging is not defined' ...
}
Hope this helps!
5 replies
BRBuildShip + Rowy
Created by Your Majesty on 5/23/2024 in #💬・general
Your Majesty - Just as I was struggling with de...
Happy to hear you are enjoying the new logging experience! 🙌
4 replies
BRBuildShip + Rowy
Created by Interlooper on 11/16/2023 in #❓・buildship-help
Get Document > Exists boolean returns undefined
Hey @Interlooper , I have updated the script. So now, if you delete the current 'Get Document' node and add it again from the node explorer, it should probably fix this issue.
10 replies