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
SOLUTION
Avatar of shakashico
shakashico
Flag of Egypt image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of sharpodal
sharpodal

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Networking
Networking

Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo