Avatar of sharpodal
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("Information", txtMessage.Text);
        }

        protected void btnThrowException_Click(object sender, EventArgs e)
        {
            try
            {
                object o = null;
                o.ToString();
            }
            catch (Exception ex)
            {

                RoleManager.WriteToLog("Error", ex.Message);
            }
        }
NetworkingWeb Languages and StandardsWeb ApplicationsAzure

Avatar of undefined
Last Comment
sharpodal

8/22/2022 - Mon
SOLUTION
shakashico

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
sharpodal

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61