{"action":"created","issue":{"url":"https://api.github.com/repos/Norconex/collector-http/issues/435","repository_url":"https://api.github.com/repos/Norconex/collector-http","labels_url":"https://api.github.com/repos/Norconex/collector-http/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/Norconex/collector-http/issues/435/comments","events_url":"https://api.github.com/repos/Norconex/collector-http/issues/435/events","html_url":"https://github.com/Norconex/collector-http/issues/435","id":279454693,"number":435,"title":"Log4j.properties and log file generated by NORCONEX COLLECTOR","user":{"login":"mauromi76","id":22741519,"avatar_url":"https://avatars2.githubusercontent.com/u/22741519?v=4","gravatar_id":"","url":"https://api.github.com/users/mauromi76","html_url":"https://github.com/mauromi76","followers_url":"https://api.github.com/users/mauromi76/followers","following_url":"https://api.github.com/users/mauromi76/following{/other_user}","gists_url":"https://api.github.com/users/mauromi76/gists{/gist_id}","starred_url":"https://api.github.com/users/mauromi76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauromi76/subscriptions","organizations_url":"https://api.github.com/users/mauromi76/orgs","repos_url":"https://api.github.com/users/mauromi76/repos","events_url":"https://api.github.com/users/mauromi76/events{/privacy}","received_events_url":"https://api.github.com/users/mauromi76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-05T17:06:34Z","updated_at":"2017-12-11T13:11:46Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nI hope you can help us with this.\r\nWe downloaded the norconex collector at https://www.norconex.com/collectors/collector-http/ and we are evaluating the product.\r\n\r\nInstall and run was successful but we are trying to reduce the size of the log file generated by removing the INFO lines.\r\n\r\nSo here's the steps we followed.\r\n\r\nWe changed the settings in the file \"log4j.properties\" like this:\r\n\r\n\\# Set level of information printed in log file/console\r\n\\# (DEBUG > INFO > WARN > ERROR > FATAL)\r\n\\# By default, use INFO\r\nlog4j.rootLogger=ERROR, CONSOLE\r\n \r\nAnd then when we run the crawler we run the command:\r\n \r\n/opt/norconex-collector/collector-http.sh -a start -c config.xml > /opt/norconex-collector/workdir/nohup.log &\r\n \r\nThe result is that in the \"nohup.log\" file we see the log as we want, with only ERRORS and above levels, but the crawler still generates a log file in the folder \"logs/latest/logs\" with the full report (which includes INFO,ERROR and so on).\r\n\r\nWhat should we have to do to remove the INFO level from the log generated in folder \"logs/latest/logs\" ?\r\n \r\nis this a setting made into the compiled source code or we can override it somehow from the log4j.properties file?\r\n \r\nthanks in advance\r\nMauro"},"comment":{"url":"https://api.github.com/repos/Norconex/collector-http/issues/comments/350720160","html_url":"https://github.com/Norconex/collector-http/issues/435#issuecomment-350720160","issue_url":"https://api.github.com/repos/Norconex/collector-http/issues/435","id":350720160,"user":{"login":"mauromi76","id":22741519,"avatar_url":"https://avatars2.githubusercontent.com/u/22741519?v=4","gravatar_id":"","url":"https://api.github.com/users/mauromi76","html_url":"https://github.com/mauromi76","followers_url":"https://api.github.com/users/mauromi76/followers","following_url":"https://api.github.com/users/mauromi76/following{/other_user}","gists_url":"https://api.github.com/users/mauromi76/gists{/gist_id}","starred_url":"https://api.github.com/users/mauromi76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauromi76/subscriptions","organizations_url":"https://api.github.com/users/mauromi76/orgs","repos_url":"https://api.github.com/users/mauromi76/repos","events_url":"https://api.github.com/users/mauromi76/events{/privacy}","received_events_url":"https://api.github.com/users/mauromi76/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T13:11:46Z","updated_at":"2017-12-11T13:11:46Z","author_association":"NONE","body":"Hi\r\nI tried the changes you mention but that seems to have no effects on the log file genereated in \"latest/\" folder.\r\nAll the changes made in \"log4j.properties\" file affect only the log generated in CONSOLE.\r\n\r\nMy suspect is that the logger (and its properties) are set in the source code and the only way to change them would be overriding some class (but I have no idea which one). Plus... i'm not a java developer and that makes everything even more hard :/\r\n\r\nI can post my whole content of \"log4j.properties\" file if that can help in finding a solution, or I guess, I have to wait for next releases :)\r\n\r\nthanks\r\nMauro\r\n\r\n"}}
{"actor":{"display_login":"mauromi76"}}