locked
Logging support RRS feed

  • Question

  • A common scenraio: all user interactions with an application are logged.

    Does LightSwitch capture log information?

    how can I hook LightSwitch generated code into a logging framework?

    Eg:

    •  press buttonX
    • value Y = xxx
    • invoke operation Z
    Thursday, August 12, 2010 7:42 AM

Answers

  • There is no build in logging support for Beta 1, but logging and diagnostics is something we are considering. We do provide a number of events and partial methods where you could do your own logging (including making calls to your own logging framework). These include screen operations like screen load and data operations like querings, saving, CRUD operations, etc. You also have access to the currently logged in user and could create intrinsic tables for storing all logging information. (i.e, on the Updating Method for an Entity, you could write a record to a log table with information about what record was updated, who did it, and when.
    Patrick Baker
    • Proposed as answer by AndreAlvesLima Thursday, August 12, 2010 4:29 PM
    • Marked as answer by JReuben1 Thursday, August 12, 2010 7:05 PM
    Thursday, August 12, 2010 3:50 PM