LostArkLogger icon indicating copy to clipboard operation
LostArkLogger copied to clipboard

Need a standard debug logging class that isn't console.writeline

Open noita-player opened this issue 2 years ago • 2 comments

Problems:

  • [ ] Needs to support: output to stdout, out to file, and both at the same time. Electronbridge might need stdout. #62
  • [ ] Different debug levels, ideally, such as error vs info - so we can have an info-log that is very small output and always there, then enable the debug flag and have it dump debug-level messages too that might be more spew-ey
  • [ ] Can we get line numbers for exceptions in release builds? Maybe if the logger is passed an exception object? Do we need to ship full PDBs?

noita-player avatar May 09 '22 22:05 noita-player

I agree, but having a dependency on not using stdout isn't acceptable. PDB is required for line numbers, i can include that in the artifacts (but user will need to download it in addition to the exe)

shalzuth avatar May 09 '22 23:05 shalzuth

Logger class could prevent stdout from normal log calls for electronbridge as a temporary means

shalzuth avatar May 09 '22 23:05 shalzuth