idbind / identity-binder

Service for binding identities across multiple identity providers for the same user.
Other
6 stars 1 forks source link

implement basic logging #36

Closed wikkim closed 8 years ago

wikkim commented 9 years ago

for login events, binding events, errors, etc..

wikkim commented 8 years ago

using logging framework like sl4j or log4j

wikkim commented 8 years ago

need to log:

  1. any user-initiated actions (logins, bindings, unbindings)
  2. query attempts on the query API, logging both successful and unsuccessful attempts
  3. errors, exceptions, all the hypothetical "else"s (most marked with TODOs) to indicate something went wrong
cberger8 commented 8 years ago

Via Spring docs: "By default, If you use the ‘Starter POMs’, Logback will be used for logging" [see https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html] -- as this is the case, looks like it should be pretty trivial to implement logging with no further dependency setup.

wikkim commented 8 years ago

lets set up some of the logging config to have some kind of reasonable rolling/appending logging that saves off the log files on a daily basis with datestamps in the filename. After verifying that works, comment that config and make new config for just logging to console, so that this project will only print to console by default out of the box, but with the option for file-saved logs.

wikkim commented 8 years ago

framework is in place now. probably need to sprinkle in more logging statements as needed, but considering this issue closed now.