Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging capabilities #16

Open
mhpob opened this issue Jul 8, 2024 · 0 comments
Open

Add logging capabilities #16

mhpob opened this issue Jul 8, 2024 · 0 comments

Comments

@mhpob
Copy link
Owner

mhpob commented Jul 8, 2024

Probably best done using an unexported function that the others can access.

From --help:

 Logging options:
      --log [=PATH(=C:\Users\***\AppData\Local\Innovasea\VRPC\vdat)]
                                Enable file logging. Explicit path is
                                optional.
      --log-level LEVEL         Set filter threshold for file logging [0
                                (most verbose), 1000 (least verbose)]
      --trace                   Send all logging to console (no filtering)
      --trace-debug             Send logging to console with debug-level
                                filtering (200)
      --trace-info              Send logging to console with info-level
                                filtering (300)

Examples:

.\vdat.exe --trace
20240708 11:24:42.861 [D:LOG] Console log enabled
20240708 11:24:42.861 [I:LOG] App::execute_i(C:\Users\**\rvdat\vdat.exe --trace)
.\vdat.exe convert --format=csv.fathom "C:\\Users\\***/test_files/VR2AR_546310_20190613_1.vrl"  --log=.  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant