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

Make ATNA logging configurable in EHRbase #403 #355

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

ale222
Copy link
Contributor

@ale222 ale222 commented Nov 2, 2020

Changes

  • Add ipf-atna-spring-boot-starter library
  • Configure atna for the local profile in application-local.yaml

Related issue

Fixes https://github.com/ehrbase/project_management/issues/403

Additional information

Usage example:

  1. Configure the ATNA properties like audit log repository host, port and other in the application.yaml.
    See https://oehf.github.io/ipf-docs/docs/boot-atna/

  2. Inject the AuditContext bean:
    @Autowire private AuditContext auditContext;

  3. Use it to send audit logs:
    auditContext.audit( new ApplicationActivityBuilder.ApplicationStart(EventOutcomeIndicator.Success, "Application Started") .getMessage());

@ale222 ale222 merged commit b2385e2 into develop Nov 3, 2020
@ale222 ale222 deleted the feature/403_atna_spring_config branch November 3, 2020 15:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants