{"action":"created","comment":{"url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/comments/210577020","pull_request_review_id":146820279,"id":210577020,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDU3NzAyMA==","diff_hunk":"@@ -0,0 +1,59 @@\n+import {IIdentity} from '@essential-projects/iam_contracts';\n+\n+import {LogEntry} from './log_entry';\n+import {LogLevel} from './log_level';\n+\n+/**\n+ * Contains functions for writing and retrieving content from logfiles.\n+ * Each logfile relates to a specific process model and correlation.\n+ */\n+export interface ILoggingService {\n+\n+  /**\n+   * Retrieves the logs for a specific correlation.\n+   * @async\n+   * @param identity       The identity of the requesting user.\n+   * @param correlationId  The id of the correlation for which to retrieve the logs.\n+   * @param logLevel       Optional: If set, only logs with a matching log level are returned.\n+   *                       If not set, all logs will be returned.\n+   * @returns              A list of log entries.\n+   */\n+  getLogsForCorrelation(identity: IIdentity, correlationId: string, logLevel?: LogLevel): Promise<Array<LogEntry>>;\n+\n+  /**\n+   * Retrieves the logs for a specific process model of a given correlation.\n+   * @async\n+   * @param identity       The identity of the requesting user.\n+   * @param correlationId  The id of the correlation for which to retrieve the logs.\n+   * @param processModelId The id of process model for which to retrieve the logs.\n+   * @param logLevel       Optional: If set, only logs with a matching log level are returned.\n+   *                       If not set, all logs will be returned.\n+   * @returns              A list of log entries.\n+   */\n+  getLogsForProcessInstance(identity: IIdentity, correlationId: string, processModelId: string, logLevel?: LogLevel): Promise<Array<LogEntry>>;\n+\n+  /**\n+   * Writes a log entry for a specific process model of a correlation.\n+   * @async\n+   * @param correlationId  The id of the correlation to which the process model belongs.\n+   * @param processModelId The id of process model for which to create a log entry.\n+   * @param logLevel       The loglevel to use (debug, info, warning, error).\n+   * @param message        The message to write into the log entry.\n+   */\n+  writeLogForProcessModel(correlationId: string, processModelId: string, logLevel: LogLevel, message: string): Promise<void>;","path":"src/ilogging_service.ts","position":43,"original_position":43,"commit_id":"a302ce22b833c7b85b169cdce252bbe88604998c","original_commit_id":"a302ce22b833c7b85b169cdce252bbe88604998c","user":{"login":"roblen45","id":36449148,"node_id":"MDQ6VXNlcjM2NDQ5MTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/36449148?v=4","gravatar_id":"","url":"https://api.github.com/users/roblen45","html_url":"https://github.com/roblen45","followers_url":"https://api.github.com/users/roblen45/followers","following_url":"https://api.github.com/users/roblen45/following{/other_user}","gists_url":"https://api.github.com/users/roblen45/gists{/gist_id}","starred_url":"https://api.github.com/users/roblen45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblen45/subscriptions","organizations_url":"https://api.github.com/users/roblen45/orgs","repos_url":"https://api.github.com/users/roblen45/repos","events_url":"https://api.github.com/users/roblen45/events{/privacy}","received_events_url":"https://api.github.com/users/roblen45/received_events","type":"User","site_admin":false},"body":"Wofür ist diese Methode? Wer verwendet sie?\r\n\r\nReicht nicht die untere?","created_at":"2018-08-16T12:33:51Z","updated_at":"2018-08-16T12:34:29Z","html_url":"https://github.com/process-engine/logging_api_contracts/pull/1#discussion_r210577020","pull_request_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/comments/210577020"},"html":{"href":"https://github.com/process-engine/logging_api_contracts/pull/1#discussion_r210577020"},"pull_request":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1","id":208552637,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTUyNjM3","html_url":"https://github.com/process-engine/logging_api_contracts/pull/1","diff_url":"https://github.com/process-engine/logging_api_contracts/pull/1.diff","patch_url":"https://github.com/process-engine/logging_api_contracts/pull/1.patch","issue_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/1","number":1,"state":"open","locked":false,"title":"✨Add First Draft of Contracts","user":{"login":"ElRaptorus","id":15343316,"node_id":"MDQ6VXNlcjE1MzQzMzE2","avatar_url":"https://avatars1.githubusercontent.com/u/15343316?v=4","gravatar_id":"","url":"https://api.github.com/users/ElRaptorus","html_url":"https://github.com/ElRaptorus","followers_url":"https://api.github.com/users/ElRaptorus/followers","following_url":"https://api.github.com/users/ElRaptorus/following{/other_user}","gists_url":"https://api.github.com/users/ElRaptorus/gists{/gist_id}","starred_url":"https://api.github.com/users/ElRaptorus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElRaptorus/subscriptions","organizations_url":"https://api.github.com/users/ElRaptorus/orgs","repos_url":"https://api.github.com/users/ElRaptorus/repos","events_url":"https://api.github.com/users/ElRaptorus/events{/privacy}","received_events_url":"https://api.github.com/users/ElRaptorus/received_events","type":"User","site_admin":false},"body":"## What did you change?\r\n\r\n- Add the first draft of contracts for the Logging API.\r\n\r\n## PR-Checklist\r\n\r\nPlease check the boxes in this list after submitting your PR:\r\n\r\n- [x] You can merge this PR **right now** (if not, please prefix the title with \"WIP: \")\r\n- [x] I've tested **all** changes included in this PR.\r\n- [x] I've also reviewed this PR myself before submitting (e.g. for scrambled letters, typos, etc.)\r\n- [x] I've merged the `develop` branch into my branch before finishing this PR.\r\n- [x] I've **not added any other changes** than the ones described above.\r\n- [x] I've mentioned all **PRs, which relate to this one**\r\n","created_at":"2018-08-15T12:45:53Z","updated_at":"2018-08-16T12:34:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a0de6da8c2527cea2c3a231776d596f20aeb5c5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cmg-dev","id":4034128,"node_id":"MDQ6VXNlcjQwMzQxMjg=","avatar_url":"https://avatars0.githubusercontent.com/u/4034128?v=4","gravatar_id":"","url":"https://api.github.com/users/cmg-dev","html_url":"https://github.com/cmg-dev","followers_url":"https://api.github.com/users/cmg-dev/followers","following_url":"https://api.github.com/users/cmg-dev/following{/other_user}","gists_url":"https://api.github.com/users/cmg-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cmg-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmg-dev/subscriptions","organizations_url":"https://api.github.com/users/cmg-dev/orgs","repos_url":"https://api.github.com/users/cmg-dev/repos","events_url":"https://api.github.com/users/cmg-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cmg-dev/received_events","type":"User","site_admin":false},{"login":"5ebastianMeier","id":16539774,"node_id":"MDQ6VXNlcjE2NTM5Nzc0","avatar_url":"https://avatars0.githubusercontent.com/u/16539774?v=4","gravatar_id":"","url":"https://api.github.com/users/5ebastianMeier","html_url":"https://github.com/5ebastianMeier","followers_url":"https://api.github.com/users/5ebastianMeier/followers","following_url":"https://api.github.com/users/5ebastianMeier/following{/other_user}","gists_url":"https://api.github.com/users/5ebastianMeier/gists{/gist_id}","starred_url":"https://api.github.com/users/5ebastianMeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5ebastianMeier/subscriptions","organizations_url":"https://api.github.com/users/5ebastianMeier/orgs","repos_url":"https://api.github.com/users/5ebastianMeier/repos","events_url":"https://api.github.com/users/5ebastianMeier/events{/privacy}","received_events_url":"https://api.github.com/users/5ebastianMeier/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1/commits","review_comments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1/comments","review_comment_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/1/comments","statuses_url":"https://api.github.com/repos/process-engine/logging_api_contracts/statuses/a302ce22b833c7b85b169cdce252bbe88604998c","head":{"label":"process-engine:feature/initial_implementation","ref":"feature/initial_implementation","sha":"a302ce22b833c7b85b169cdce252bbe88604998c","user":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":144818090,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ4MTgwOTA=","name":"logging_api_contracts","full_name":"process-engine/logging_api_contracts","owner":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/process-engine/logging_api_contracts","description":"Contains all the commonly used contracts for the logging api.","fork":false,"url":"https://api.github.com/repos/process-engine/logging_api_contracts","forks_url":"https://api.github.com/repos/process-engine/logging_api_contracts/forks","keys_url":"https://api.github.com/repos/process-engine/logging_api_contracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/process-engine/logging_api_contracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/process-engine/logging_api_contracts/teams","hooks_url":"https://api.github.com/repos/process-engine/logging_api_contracts/hooks","issue_events_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/events{/number}","events_url":"https://api.github.com/repos/process-engine/logging_api_contracts/events","assignees_url":"https://api.github.com/repos/process-engine/logging_api_contracts/assignees{/user}","branches_url":"https://api.github.com/repos/process-engine/logging_api_contracts/branches{/branch}","tags_url":"https://api.github.com/repos/process-engine/logging_api_contracts/tags","blobs_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/process-engine/logging_api_contracts/statuses/{sha}","languages_url":"https://api.github.com/repos/process-engine/logging_api_contracts/languages","stargazers_url":"https://api.github.com/repos/process-engine/logging_api_contracts/stargazers","contributors_url":"https://api.github.com/repos/process-engine/logging_api_contracts/contributors","subscribers_url":"https://api.github.com/repos/process-engine/logging_api_contracts/subscribers","subscription_url":"https://api.github.com/repos/process-engine/logging_api_contracts/subscription","commits_url":"https://api.github.com/repos/process-engine/logging_api_contracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/process-engine/logging_api_contracts/contents/{+path}","compare_url":"https://api.github.com/repos/process-engine/logging_api_contracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/process-engine/logging_api_contracts/merges","archive_url":"https://api.github.com/repos/process-engine/logging_api_contracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/process-engine/logging_api_contracts/downloads","issues_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues{/number}","pulls_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls{/number}","milestones_url":"https://api.github.com/repos/process-engine/logging_api_contracts/milestones{/number}","notifications_url":"https://api.github.com/repos/process-engine/logging_api_contracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/process-engine/logging_api_contracts/labels{/name}","releases_url":"https://api.github.com/repos/process-engine/logging_api_contracts/releases{/id}","deployments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/deployments","created_at":"2018-08-15T07:05:29Z","updated_at":"2018-08-15T07:53:22Z","pushed_at":"2018-08-16T12:27:37Z","git_url":"git://github.com/process-engine/logging_api_contracts.git","ssh_url":"git@github.com:process-engine/logging_api_contracts.git","clone_url":"https://github.com/process-engine/logging_api_contracts.git","svn_url":"https://github.com/process-engine/logging_api_contracts","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"process-engine:develop","ref":"develop","sha":"a5bcb0baed605ddda130cd757df5c9998791ac6f","user":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":144818090,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ4MTgwOTA=","name":"logging_api_contracts","full_name":"process-engine/logging_api_contracts","owner":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/process-engine/logging_api_contracts","description":"Contains all the commonly used contracts for the logging api.","fork":false,"url":"https://api.github.com/repos/process-engine/logging_api_contracts","forks_url":"https://api.github.com/repos/process-engine/logging_api_contracts/forks","keys_url":"https://api.github.com/repos/process-engine/logging_api_contracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/process-engine/logging_api_contracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/process-engine/logging_api_contracts/teams","hooks_url":"https://api.github.com/repos/process-engine/logging_api_contracts/hooks","issue_events_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/events{/number}","events_url":"https://api.github.com/repos/process-engine/logging_api_contracts/events","assignees_url":"https://api.github.com/repos/process-engine/logging_api_contracts/assignees{/user}","branches_url":"https://api.github.com/repos/process-engine/logging_api_contracts/branches{/branch}","tags_url":"https://api.github.com/repos/process-engine/logging_api_contracts/tags","blobs_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/process-engine/logging_api_contracts/statuses/{sha}","languages_url":"https://api.github.com/repos/process-engine/logging_api_contracts/languages","stargazers_url":"https://api.github.com/repos/process-engine/logging_api_contracts/stargazers","contributors_url":"https://api.github.com/repos/process-engine/logging_api_contracts/contributors","subscribers_url":"https://api.github.com/repos/process-engine/logging_api_contracts/subscribers","subscription_url":"https://api.github.com/repos/process-engine/logging_api_contracts/subscription","commits_url":"https://api.github.com/repos/process-engine/logging_api_contracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/process-engine/logging_api_contracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/process-engine/logging_api_contracts/contents/{+path}","compare_url":"https://api.github.com/repos/process-engine/logging_api_contracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/process-engine/logging_api_contracts/merges","archive_url":"https://api.github.com/repos/process-engine/logging_api_contracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/process-engine/logging_api_contracts/downloads","issues_url":"https://api.github.com/repos/process-engine/logging_api_contracts/issues{/number}","pulls_url":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls{/number}","milestones_url":"https://api.github.com/repos/process-engine/logging_api_contracts/milestones{/number}","notifications_url":"https://api.github.com/repos/process-engine/logging_api_contracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/process-engine/logging_api_contracts/labels{/name}","releases_url":"https://api.github.com/repos/process-engine/logging_api_contracts/releases{/id}","deployments_url":"https://api.github.com/repos/process-engine/logging_api_contracts/deployments","created_at":"2018-08-15T07:05:29Z","updated_at":"2018-08-15T07:53:22Z","pushed_at":"2018-08-16T12:27:37Z","git_url":"git://github.com/process-engine/logging_api_contracts.git","ssh_url":"git@github.com:process-engine/logging_api_contracts.git","clone_url":"https://github.com/process-engine/logging_api_contracts.git","svn_url":"https://github.com/process-engine/logging_api_contracts","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1"},"html":{"href":"https://github.com/process-engine/logging_api_contracts/pull/1"},"issue":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/1"},"comments":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/process-engine/logging_api_contracts/statuses/a302ce22b833c7b85b169cdce252bbe88604998c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"roblen45"}}