Error logging

Quercus47's Avatar

Quercus47

08 May, 2022 07:52 PM

Java uses a global logger, but since MD extensions are an extension to the main Moneydance application, does my extension have access to the logger or is that reserved for Moneydance?

To ask a more basic question, what is the simplest way for users of an extension (the public) to send error logs back to the extension developer if something unexpected happened?

  1. 1 Posted by Stuart Beesley ... on 08 May, 2022 08:19 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    I’m not sure this answers your question. But you can write to the Moneydance console (errlog.txt / help>show console) by doing:

    System.err.write(msg)

    This is the way that ultimately all extensions output their errors.

    Most extensions have a debug mode which tells the extn to become more verbose.

    Users typically then send the whole console to the developer.

  2. 2 Posted by Quercus47 on 09 May, 2022 12:22 AM

    Quercus47's Avatar

    Got it. Thanks. That is the pointer in the right direction I needed.
    -Cheers.

  3. Maddy closed this discussion on 10 May, 2022 02:32 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac