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

Create Logs and Error Types as part of the ipyleaflet Map Object #108

Open
sandrahoang686 opened this issue Sep 12, 2023 · 0 comments
Open

Comments

@sandrahoang686
Copy link
Collaborator

Description

It would be helpful to collect logs and errors during runtime and make them available to access as part of the ipyleaflet map object. Therefore users can access logs and errors at anytime whenever needed.

This issue should just create the standard and have a few use cases in certain areas. The use cases will grow as more features are developed.

Acceptance Critieria

  • Define what types of logs we would care to collect and document this in-code
  • Create a log & error class type to create standardization here
  • Use the logging whenever we would want to report to the user right away, otherwise push these logs/errors to the Map object (usecases include in the collections logic, whenever a collection is skipped due to being non-compliant, we should collect and add as a log to the Map Object)
  • To do this, we would need to make the Map object accessible wherever there are possible logs to collect. A possible solution might be to... create a log/error class that extends the Map object
class Logs(TypedDict):
    error: bool // error or log?
    message: str // custom message
    raw_error: str // possible stack trace
    metadata: Optional[Dict[str, str]]


class LogsAndErrorCollections(StacIpyleaflet):
....

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