<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
<style>
div.markdown { white-space: normal; }
div.plaintext { white-space: normal; }
body { font-family: sans-serif; }
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.1em; }
blockquote { margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777; }
blockquote blockquote { border-left-color: #999999; color: #999999; }
blockquote blockquote blockquote { border-left-color: #BBBBBB; color: #BBBBBB; }
blockquote a { color: #777777; }
blockquote blockquote a { color: #999999; }
blockquote blockquote blockquote a { color: #BBBBBB; }
math[display="inline"] > mrow { padding:5px; }
div.footnotes li p { margin: 0.2em 0; }
</style>
</head>
<body>
<div class="markdown">
<p dir="auto">On 7 Jul 2017, at 7:50, Arya, Manish Kumar wrote:</p>

</div>
<div class="plaintext"><blockquote><p dir="auto">Hi,<br>
   I have written a Pre auth hook which uses log_debug to print messages in radius log files. This is working well on my lab radius.however, when I use same script in production I do get<br>
Fri Jul  7 08:40:19 2017: ERR: Error in PreAuthHook(): Undefined subroutine &Radius::Configurable::log_debug called at (eval 61) line 2.<br>
What could be the problem and fix ?</p>
</blockquote></div>
<div class="markdown">

<p dir="auto">In scripts in the old days I used to use:</p>

<p dir="auto">main::log($main::LOG_DEBUG, “Hello world\n”);</p>

<p dir="auto">Or if you have Handler object name $h or similar .. $h->log($main::LOG_DEBUG, “Handling request with Handler '$h->{Name}', Identifier '$h->{Identifier}'", $p);</p>

<p dir="auto">Hope that helps.</p>

<p dir="auto">/bz</p>
</div>

</body>
</html>