Watchdog message is not proper Used sqlquery to get the error log messages from watchdog table.
Getting message like, 


'Sending mail to: @to'. 
'%type: !message in %function (line    %line of %file)'
(which seems not relevant).


How can I get error log message similar as shown at SiteReports-->Recent Log Messages  view?
The data is serialised and uses an array of named placeholders, so you'll need to use PHP to assemble the full message:

// Get data from the DB, each record stored in $row, then...
$message = $row-&gt;message;
$variables = unserialize($row-&gt;variables);

$full_message = strtr($message, $variables);