sharpodal
asked on
Unable to log information and errors using RoleManager
I create a simple Web Cloud Service and run it and then see the Development Fabric
WebRole the first instance. But the log is empty. Do I need to do any setting for
the logging.
This is the simple code behind
protected void btnLog_Click(object sender, EventArgs e)
{
RoleManager.WriteToLog("In formation" , txtMessage.Text);
}
protected void btnThrowException_Click(ob ject sender, EventArgs e)
{
try
{
object o = null;
o.ToString();
}
catch (Exception ex)
{
RoleManager.WriteToLog("Er ror", ex.Message);
}
}
WebRole the first instance. But the log is empty. Do I need to do any setting for
the logging.
This is the simple code behind
protected void btnLog_Click(object sender, EventArgs e)
{
RoleManager.WriteToLog("In
}
protected void btnThrowException_Click(ob
{
try
{
object o = null;
o.ToString();
}
catch (Exception ex)
{
RoleManager.WriteToLog("Er
}
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.