{"action":"created","comment":{"url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/comments/85692003","pull_request_review_id":6392355,"id":85692003,"diff_hunk":"@@ -0,0 +1,56 @@\n+package cz.codecamp.logger.loggers;\n+\n+import cz.codecamp.logger.FormatterInterface;\n+import cz.codecamp.logger.LogLevelEnum;\n+import cz.codecamp.logger.LoggerInterface;\n+\n+import java.io.*;\n+\n+\n+/**\n+ * Created by lenka.salacova on 10/3/2016.\n+ */\n+public class FileLogger extends AbstractLogger implements Closeable{\n+\n+    private PrintStream printStream;\n+    protected String currentName;\n+    private FormatterInterface formatterInterface;\n+\n+    public FileLogger(String fileName, FormatterInterface formatterInterface) {\n+        currentName = getFileName(fileName);\n+\n+        createPrintStream(new File(currentName));\n+        this.formatterInterface = formatterInterface;\n+    }\n+\n+    @Override\n+    public void log(LogLevelEnum level, String message) {\n+        //this.printStream.printf(\"[%s]: %s\\n\", level.name(), message);\n+        this.printStream.println(formatterInterface.format(level, message));","path":"src/main/java/cz/codecamp/logger/loggers/FileLogger.java","position":29,"original_position":29,"commit_id":"dcfe1c49155c8d04bae7e2833fd34cb18941990d","original_commit_id":"dcfe1c49155c8d04bae7e2833fd34cb18941990d","user":{"login":"jakubkulhan","id":95001,"avatar_url":"https://avatars.githubusercontent.com/u/95001?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubkulhan","html_url":"https://github.com/jakubkulhan","followers_url":"https://api.github.com/users/jakubkulhan/followers","following_url":"https://api.github.com/users/jakubkulhan/following{/other_user}","gists_url":"https://api.github.com/users/jakubkulhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubkulhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubkulhan/subscriptions","organizations_url":"https://api.github.com/users/jakubkulhan/orgs","repos_url":"https://api.github.com/users/jakubkulhan/repos","events_url":"https://api.github.com/users/jakubkulhan/events{/privacy}","received_events_url":"https://api.github.com/users/jakubkulhan/received_events","type":"User","site_admin":false},"body":"`this.` se většinou nepoužívá, není-li to potřeba (protože existuje proměnná stejného jména jako parametr / lokální proměnná).","created_at":"2016-10-31T07:00:23Z","updated_at":"2016-10-31T07:12:23Z","html_url":"https://github.com/jakubkulhan/cc16-java-intro/pull/9#discussion_r85692003","pull_request_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/comments/85692003"},"html":{"href":"https://github.com/jakubkulhan/cc16-java-intro/pull/9#discussion_r85692003"},"pull_request":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9","id":89690312,"html_url":"https://github.com/jakubkulhan/cc16-java-intro/pull/9","diff_url":"https://github.com/jakubkulhan/cc16-java-intro/pull/9.diff","patch_url":"https://github.com/jakubkulhan/cc16-java-intro/pull/9.patch","issue_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/9","number":9,"state":"open","locked":false,"title":"Domaci ukol c. 1 aneb Logger kam se podivas!","user":{"login":"salacovalenka","id":22610937,"avatar_url":"https://avatars.githubusercontent.com/u/22610937?v=3","gravatar_id":"","url":"https://api.github.com/users/salacovalenka","html_url":"https://github.com/salacovalenka","followers_url":"https://api.github.com/users/salacovalenka/followers","following_url":"https://api.github.com/users/salacovalenka/following{/other_user}","gists_url":"https://api.github.com/users/salacovalenka/gists{/gist_id}","starred_url":"https://api.github.com/users/salacovalenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salacovalenka/subscriptions","organizations_url":"https://api.github.com/users/salacovalenka/orgs","repos_url":"https://api.github.com/users/salacovalenka/repos","events_url":"https://api.github.com/users/salacovalenka/events{/privacy}","received_events_url":"https://api.github.com/users/salacovalenka/received_events","type":"User","site_admin":false},"body":"Kluci, posilam prvni domaci ukol. A pamatujte - za kazdy negativni komentar umre kotatko!!\nPreji pekny den :))\nL.\n","created_at":"2016-10-17T19:51:58Z","updated_at":"2016-10-31T07:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3ad6fa841e9c0e720ec9f4e4b46fb6918e743e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9/commits","review_comments_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9/comments","review_comment_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/9/comments","statuses_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/statuses/dcfe1c49155c8d04bae7e2833fd34cb18941990d","head":{"label":"salacovalenka:master","ref":"master","sha":"dcfe1c49155c8d04bae7e2833fd34cb18941990d","user":{"login":"salacovalenka","id":22610937,"avatar_url":"https://avatars.githubusercontent.com/u/22610937?v=3","gravatar_id":"","url":"https://api.github.com/users/salacovalenka","html_url":"https://github.com/salacovalenka","followers_url":"https://api.github.com/users/salacovalenka/followers","following_url":"https://api.github.com/users/salacovalenka/following{/other_user}","gists_url":"https://api.github.com/users/salacovalenka/gists{/gist_id}","starred_url":"https://api.github.com/users/salacovalenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salacovalenka/subscriptions","organizations_url":"https://api.github.com/users/salacovalenka/orgs","repos_url":"https://api.github.com/users/salacovalenka/repos","events_url":"https://api.github.com/users/salacovalenka/events{/privacy}","received_events_url":"https://api.github.com/users/salacovalenka/received_events","type":"User","site_admin":false},"repo":{"id":70083491,"name":"cc16-java-intro","full_name":"salacovalenka/cc16-java-intro","owner":{"login":"salacovalenka","id":22610937,"avatar_url":"https://avatars.githubusercontent.com/u/22610937?v=3","gravatar_id":"","url":"https://api.github.com/users/salacovalenka","html_url":"https://github.com/salacovalenka","followers_url":"https://api.github.com/users/salacovalenka/followers","following_url":"https://api.github.com/users/salacovalenka/following{/other_user}","gists_url":"https://api.github.com/users/salacovalenka/gists{/gist_id}","starred_url":"https://api.github.com/users/salacovalenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salacovalenka/subscriptions","organizations_url":"https://api.github.com/users/salacovalenka/orgs","repos_url":"https://api.github.com/users/salacovalenka/repos","events_url":"https://api.github.com/users/salacovalenka/events{/privacy}","received_events_url":"https://api.github.com/users/salacovalenka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salacovalenka/cc16-java-intro","description":"Codecamp 2016 (http://codecamp.cz/) Java intro lecture","fork":true,"url":"https://api.github.com/repos/salacovalenka/cc16-java-intro","forks_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/forks","keys_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/teams","hooks_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/hooks","issue_events_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/issues/events{/number}","events_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/events","assignees_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/assignees{/user}","branches_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/branches{/branch}","tags_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/tags","blobs_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/git/refs{/sha}","trees_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/statuses/{sha}","languages_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/languages","stargazers_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/stargazers","contributors_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/contributors","subscribers_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/subscribers","subscription_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/subscription","commits_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/commits{/sha}","git_commits_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/git/commits{/sha}","comments_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/comments{/number}","issue_comment_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/issues/comments{/number}","contents_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/contents/{+path}","compare_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/merges","archive_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/downloads","issues_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/issues{/number}","pulls_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/pulls{/number}","milestones_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/milestones{/number}","notifications_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/labels{/name}","releases_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/releases{/id}","deployments_url":"https://api.github.com/repos/salacovalenka/cc16-java-intro/deployments","created_at":"2016-10-05T17:37:44Z","updated_at":"2016-10-05T17:37:45Z","pushed_at":"2016-10-17T18:53:00Z","git_url":"git://github.com/salacovalenka/cc16-java-intro.git","ssh_url":"git@github.com:salacovalenka/cc16-java-intro.git","clone_url":"https://github.com/salacovalenka/cc16-java-intro.git","svn_url":"https://github.com/salacovalenka/cc16-java-intro","homepage":null,"size":771,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jakubkulhan:master","ref":"master","sha":"b893d3f1b253070540147815db3074947f453b6d","user":{"login":"jakubkulhan","id":95001,"avatar_url":"https://avatars.githubusercontent.com/u/95001?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubkulhan","html_url":"https://github.com/jakubkulhan","followers_url":"https://api.github.com/users/jakubkulhan/followers","following_url":"https://api.github.com/users/jakubkulhan/following{/other_user}","gists_url":"https://api.github.com/users/jakubkulhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubkulhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubkulhan/subscriptions","organizations_url":"https://api.github.com/users/jakubkulhan/orgs","repos_url":"https://api.github.com/users/jakubkulhan/repos","events_url":"https://api.github.com/users/jakubkulhan/events{/privacy}","received_events_url":"https://api.github.com/users/jakubkulhan/received_events","type":"User","site_admin":false},"repo":{"id":69873798,"name":"cc16-java-intro","full_name":"jakubkulhan/cc16-java-intro","owner":{"login":"jakubkulhan","id":95001,"avatar_url":"https://avatars.githubusercontent.com/u/95001?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubkulhan","html_url":"https://github.com/jakubkulhan","followers_url":"https://api.github.com/users/jakubkulhan/followers","following_url":"https://api.github.com/users/jakubkulhan/following{/other_user}","gists_url":"https://api.github.com/users/jakubkulhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubkulhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubkulhan/subscriptions","organizations_url":"https://api.github.com/users/jakubkulhan/orgs","repos_url":"https://api.github.com/users/jakubkulhan/repos","events_url":"https://api.github.com/users/jakubkulhan/events{/privacy}","received_events_url":"https://api.github.com/users/jakubkulhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakubkulhan/cc16-java-intro","description":"Codecamp 2016 (http://codecamp.cz/) Java intro lecture","fork":false,"url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro","forks_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/forks","keys_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/teams","hooks_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/hooks","issue_events_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/events{/number}","events_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/events","assignees_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/assignees{/user}","branches_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/branches{/branch}","tags_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/tags","blobs_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/statuses/{sha}","languages_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/languages","stargazers_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/stargazers","contributors_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/contributors","subscribers_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/subscribers","subscription_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/subscription","commits_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/contents/{+path}","compare_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/merges","archive_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/downloads","issues_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues{/number}","pulls_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls{/number}","milestones_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/milestones{/number}","notifications_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/labels{/name}","releases_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/releases{/id}","deployments_url":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/deployments","created_at":"2016-10-03T13:37:05Z","updated_at":"2016-10-03T13:45:13Z","pushed_at":"2016-10-30T19:43:10Z","git_url":"git://github.com/jakubkulhan/cc16-java-intro.git","ssh_url":"git@github.com:jakubkulhan/cc16-java-intro.git","clone_url":"https://github.com/jakubkulhan/cc16-java-intro.git","svn_url":"https://github.com/jakubkulhan/cc16-java-intro","homepage":null,"size":1603,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":17,"forks":19,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9"},"html":{"href":"https://github.com/jakubkulhan/cc16-java-intro/pull/9"},"issue":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/9"},"comments":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/jakubkulhan/cc16-java-intro/statuses/dcfe1c49155c8d04bae7e2833fd34cb18941990d"}}}}
{"actor":{"display_login":"jakubkulhan"}}