rein on Nostr: There are infinite methods to choose from in order to accomplish that. Are you on ...
There are infinite methods to choose from in order to accomplish that.
Are you on linux? Then you can just run
`program > file.txt` and all the console output will go to a file instead of being printed. Then you can just print to console as normal for errors.
This is the easiest way.
If you want a more complicated way find a logging library for whatever you are using which is going to have many options you can set
Published at
2023-06-19 12:43:07Event JSON
{
"id": "1531359f30bfae6824e8454131673f8dac96d9ddbae3ff696995dbebe61da340",
"pubkey": "e340352c2374fd142e75d8f347ef7ff28bd4d0a4438ad7c28be295561d94e85f",
"created_at": 1687178587,
"kind": 1,
"tags": [
[
"p",
"8b347916be2cb3ab9687c9eb78a8d05224c045bce5b416bdd50169965eb0f45c",
"wss://relay.mostr.pub"
],
[
"p",
"203bd46f9e4c676076dcfb143477e78d09e194c4b5e919c22647d3afd1ef1485",
"wss://relay.mostr.pub"
],
[
"e",
"ddf07ce76f39a7b6510b8d7a8a305344b4933bb1c31bc45491c4e1b492440258",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://poa.st/objects/d29c3a3b-f313-4516-9e9a-70ec46237a23"
]
],
"content": "There are infinite methods to choose from in order to accomplish that.\n\nAre you on linux? Then you can just run\n`program \u003e file.txt` and all the console output will go to a file instead of being printed. Then you can just print to console as normal for errors.\nThis is the easiest way.\n\nIf you want a more complicated way find a logging library for whatever you are using which is going to have many options you can set",
"sig": "c54b0add0d4a08c95ade353f7cccc762adf6f25486fd149000d6ea909b9ecaba881d0f2afe77a82dfe7df18129382d916ecba26cdaf53d8ea647e239496c8798"
}