{"action":"created","issue":{"url":"https://api.github.com/repos/opencog/atomspace/issues/350","labels_url":"https://api.github.com/repos/opencog/atomspace/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/opencog/atomspace/issues/350/comments","events_url":"https://api.github.com/repos/opencog/atomspace/issues/350/events","html_url":"https://github.com/opencog/atomspace/issues/350","id":109257635,"number":350,"title":"Expose opencog logger to Scheme","user":{"login":"ngeiswei","id":819225,"avatar_url":"https://avatars.githubusercontent.com/u/819225?v=3","gravatar_id":"","url":"https://api.github.com/users/ngeiswei","html_url":"https://github.com/ngeiswei","followers_url":"https://api.github.com/users/ngeiswei/followers","following_url":"https://api.github.com/users/ngeiswei/following{/other_user}","gists_url":"https://api.github.com/users/ngeiswei/gists{/gist_id}","starred_url":"https://api.github.com/users/ngeiswei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngeiswei/subscriptions","organizations_url":"https://api.github.com/users/ngeiswei/orgs","repos_url":"https://api.github.com/users/ngeiswei/repos","events_url":"https://api.github.com/users/ngeiswei/events{/privacy}","received_events_url":"https://api.github.com/users/ngeiswei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-01T09:03:25Z","updated_at":"2015-10-02T13:49:55Z","closed_at":"2015-10-02T10:45:01Z","body":"Debugging Scheme functions is a pain, to this day I'm still not sure how to get the debug messages (from scheme code `(display <message>)`) out of a function like SchemeEval::eval_h.\r\n\r\nIt would be so much easier if one could invoke the OpenCog Logger directly from Scheme. Something like\r\n\r\n```scheme\r\n(cog-logger-info \"my info message\")\r\n(cog-logger-debug \"my debug message\")\r\n(cog-logger-fine \"my fine message\")\r\n```\r\netc.\r\n\r\nI don't mind taking care of this, but some feedback might be welcome."},"comment":{"url":"https://api.github.com/repos/opencog/atomspace/issues/comments/145027199","html_url":"https://github.com/opencog/atomspace/issues/350#issuecomment-145027199","issue_url":"https://api.github.com/repos/opencog/atomspace/issues/350","id":145027199,"user":{"login":"ngeiswei","id":819225,"avatar_url":"https://avatars.githubusercontent.com/u/819225?v=3","gravatar_id":"","url":"https://api.github.com/users/ngeiswei","html_url":"https://github.com/ngeiswei","followers_url":"https://api.github.com/users/ngeiswei/followers","following_url":"https://api.github.com/users/ngeiswei/following{/other_user}","gists_url":"https://api.github.com/users/ngeiswei/gists{/gist_id}","starred_url":"https://api.github.com/users/ngeiswei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngeiswei/subscriptions","organizations_url":"https://api.github.com/users/ngeiswei/orgs","repos_url":"https://api.github.com/users/ngeiswei/repos","events_url":"https://api.github.com/users/ngeiswei/events{/privacy}","received_events_url":"https://api.github.com/users/ngeiswei/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T13:49:55Z","updated_at":"2015-10-02T13:49:55Z","body":"I tried running directly from the unit test\r\n```c++\r\neval.eval(\"(use-modules (opencog logger))\");\r\n```\r\nand I'm getting the same kind of error. That I do not get when running\r\n```c++\r\neval.eval(\"(use-modules (opencog exec))\");\r\n```\r\nI don't understand what exec has that logger hasn't..."}}