<html>
<head>
    <base href="https://docs.jboss.org/author">
            <link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://docs.jboss.org/author/display/TEIID/Using+JBoss+LogManager+with+Teiid+Embedded">Using JBoss LogManager with Teiid Embedded</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://docs.jboss.org/author/display/~kylin">Kylin Soong</a>
    </h4>
        <br/>
                         <h4>Changes (3)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >* Specify a logging configuration properties <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Primary purpose of this document is supply a solution for using sing JBoss LogManager with Teiid Embedded. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Teiid LogManager represents the interface to a single logging framework that is easily accessible by any component. Using the LogManager, a component can quickly submit a log message, and can rely upon the LogManager to determine <br>* whether that message is to be recorded or discarded <br>* where to send any recorded messages <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Teiid LogManager default use jdk logging framework, so if replace JDK logging system LogManager with JBoss LogManager, then use JBoss LogManager&#39;s bridge feature, it&#39;s easy to use many logging frameworks within Teiid Embedded. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; <br></td></tr>
            <tr><td class="diff-unchanged" > <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>JBoss LogManager is a replacement for the JDK logging system LogManager that fixes or works around many serious problems in the default implementation, and add the the feature to bridge many logging frameworks like JBoss logging, log4j, slf4j, etc. There are 3 key steps to run JBoss LogManager in a standalone Java Application:</p>

<ul>
        <li>Add relevant libraries(both JBoss LogManager and bridging libraries)</li>
        <li>Specify the alternate log manager as a system property(<em>&#45;Djava.util.logging.manager=org.jboss.logmanager.LogManager</em>)</li>
        <li>Specify a logging configuration properties</li>
</ul>


<p>Teiid LogManager represents the interface to a single logging framework that is easily accessible by any component. Using the LogManager, a component can quickly submit a log message, and can rely upon the LogManager to determine</p>
<ul>
        <li>whether that message is to be recorded or discarded</li>
        <li>where to send any recorded messages</li>
</ul>


<p>Teiid LogManager default use jdk logging framework, so if replace JDK logging system LogManager with JBoss LogManager, then use JBoss LogManager's bridge feature, it's easy to use many logging frameworks within Teiid Embedded. &nbsp; &nbsp; &nbsp; &nbsp;</p>


<h1><a name="UsingJBossLogManagerwithTeiidEmbedded-LoggingwithJBossLogging"></a>Logging with JBoss Logging</h1>

<p>//coming soon</p>



<h1><a name="UsingJBossLogManagerwithTeiidEmbedded-LoggingwithLog4j"></a>Logging with Log4j</h1>

<p>//coming soon</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://docs.jboss.org/author/display/TEIID/Using+JBoss+LogManager+with+Teiid+Embedded">View Online</a>
        |
        <a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=94765145&revisedVersion=2&originalVersion=1">View Changes</a>
                |
        <a href="https://docs.jboss.org/author/display/TEIID/Using+JBoss+LogManager+with+Teiid+Embedded?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>