Using the Output Log user control

Bob Haring asked on January 22, 2016 12:22

Hi all,

I'm trying to use the outputlog usercontrol to display a live feed of log messages. How would I achieve this? I know that addInformation and addError results with a popup. What I want is a list of log texts in the DebugLog Div that comes with the usercontrol.

Thanks!

Recent Answers


Roman Hutnyk answered on January 22, 2016 14:36

Bob, what version of Kentico are you using? In version 8.* the entire control is wrapped with DebugLog div:

<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSAdminControls_Debug_OutputLog" CodeFile="OutputLog.ascx.cs" %>
<div class="DebugLog">
    <cms:CMSPanel runat="server" EnableViewState="false" ID="pnlHeading" Visible="False" CssClass="LogInfo">
        <cms:LocalizedLabel runat="server" ID="lblHeading" ResourceString="OutputLog.Info" EnableViewState="False" />
    </cms:CMSPanel>
    <cms:CMSPanel runat="server" EnableViewState="false" ID="pnlOutputInfo" CssClass="OutputInfo">
        <cms:LocalizedLabel runat="server" ID="lblSizeCaption" AssociatedControlID="lblSize" ResourceString="OutputLog.Info" EnableViewState="false" />
        <cms:LocalizedLabel runat="server" ID="lblSize" EnableViewState="false" />
    </cms:CMSPanel>
    <cms:CMSTextArea runat="server" ID="txtOutput" ReadOnly="True" Rows="10" EnableViewState="false" CssClass="Output" Wrap="true" />
</div>

So it's not clear what is that you're looking for.

0 votesVote for this answer Mark as a Correct answer

Bob Haring answered on January 26, 2016 09:58

Thanks for your reply Roman. It seems I was under the wrong impression on how the debuglog works. I thought there was an option to display log lines in the debuglog div, as it appears to have a border-top (see yellow arrow in image attached here).

I'll just add them as a literal. Thanks for your help.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.