Package org.apache.log.output.net

Examples of org.apache.log.output.net.SMTPOutputLogTarget


    public final LogTarget createTarget( final Configuration config )
        throws ConfigurationException
    {
        try
        {
            return new SMTPOutputLogTarget(
                getSession( config ),
                getToAddresses( config ),
                getFromAddress( config ),
                getSubject( config ),
                getMaxSize( config ),
View Full Code Here


    public final LogTarget createTarget( final Configuration config )
        throws ConfigurationException
    {
        try
        {
            SMTPOutputLogTarget logTarget = new SMTPOutputLogTarget(
                getSession( config ),
                getToAddresses( config ),
                getFromAddress( config ),
                getSubject( config ),
                getMaxSize( config ),
                getMaxDelayTime( config ),
                getFormatter( config )
            );
           
            // Only set the debug flag when true.  The flag is global in javamail
            //  and this makes things work more cleanly with old logkit versions.
            boolean debug = getDebug( config );
            if ( debug )
            {
                logTarget.setDebug( debug );
            }
           
            return logTarget;
        }
        catch( final ContextException ce )
View Full Code Here

    public final LogTarget createTarget( final Configuration config )
        throws ConfigurationException
    {
        try
        {
            return new SMTPOutputLogTarget(
                getSession( config ),
                getToAddresses( config ),
                getFromAddress( config ),
                getSubject( config ),
                getMaxSize( config ),
View Full Code Here

TOP

Related Classes of org.apache.log.output.net.SMTPOutputLogTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.