Have you configured the logging so that debug level messages will show?

The easiest way to do this is to run nox with -v on the commandine for older 
versions, or -v -v for the destiny branch.

There's some information about this in the -h help, as well as on the wiki:
https://github.com/noxrepo/nox-classic/wiki/FAQ#wiki-How_can_I_configure_the_logging


Hope that helps!

-- Murphy

On Apr 8, 2012, at 7:07 AM, LEO wrote:

> Good morning,
> 
> I am trying to link to mysql database in routing.cc(in the get_route 
> function). I would like to print something on the screen to make sure that I 
> successfully link to the database. I tried to use the VLOG_DBG(lg, "…………") 
> but nothing appeared on the screen.
> 
> I am wondering how to use this VLOG_DBG to print out some message on the 
> screen?
> 
> My code is as following
> ************************************************************************************************************************
> Routing_module::get_route(const RouteId& id, RoutePtr& route) const
> {
> 
> MYSQL_RES* res;
> MYSQL mysql;
> mysql_init(&mysql);
> 
> if(!mysql_real_connect(&mysql,"localhost","root","123456","rule",0,NULL,0))
> {
>       VLOG_DBG(lg, "Not able to link to the database");
> }
> 
> VLOG_DBG(lg, "Successfully link to the database");
> ……
> }
> *************************************************************************************************************************
> 
> 

Reply via email to