How to create a log of my node

Hi I was reading the loging guide here.

Right now I am using this command to safe logs ./node.sh 2>&1 | ~/cnode/logs/outputfile.txt

But I would like to log the node with the guide. but unfortunately the log is not created.
“TurnOnLogging”: true,
Full path to my log is: /home/kulman_david/cnode/logs

THIS are the defaults:
“defaultScribes”: [
[
“StdoutSK”,
“stdout”
]
“setupScribes”: [
{
“scFormat”: “ScText”,
“scKind”: “StdoutSK”,
“scName”: “stdout”,
“scRotation”: null
}
THIS is how I am entering it:
“defaultScribes”: [
[
FileSK”,
/home/kulman_david/cnode/logs/mylog.log
]
“setupScribes”: [
{
“scFormat”: “ScJson”,
“scKind”: “StdoutSK”,
“scName”: “/home/kulman_david/cnode/logs/mylog.log”,
“scRotation”: null
}

All I get is Listening on IP and when I check
cd cnode/log
nano mylog.log is empty

Am I doing something wrong here?

1 Like

Hi!
try this:

“scKind”: “ FileSK ”,

1 Like

thank you it did work :slight_smile: