## Uses of Class
com.sun.mail.util.MailLogger

- Packages that use MailLogger
  Package | Description
  --- | ---
  com.sun.mail.auth |
  com.sun.mail.gimap.protocol |
  com.sun.mail.iap |
  com.sun.mail.imap | An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store.
  com.sun.mail.imap.protocol |
  com.sun.mail.smtp | An SMTP protocol provider for the JavaMail API that provides access to an SMTP server.
  com.sun.mail.util | Utility classes for use with the JavaMail API.

- - ### Uses of MailLogger in com.sun.mail.auth

    Constructors in com.sun.mail.auth with parameters of type MailLogger
    Constructor and Description
    `Ntlm(String ntdomain, String hostname, String username, String password, MailLogger logger)` Create an NTLM authenticator.

  - ### Uses of MailLogger in com.sun.mail.gimap.protocol

    Constructors in com.sun.mail.gimap.protocol with parameters of type MailLogger
    Constructor and Description
    `GmailProtocol(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger)` Connect to Gmail.

  - ### Uses of MailLogger in com.sun.mail.iap

    Fields in com.sun.mail.iap declared as MailLogger
    Modifier and Type | Field and Description
    --- | ---
    `protected MailLogger` | Protocol.`logger`
    `protected MailLogger` | Protocol.`traceLogger`

    Constructors in com.sun.mail.iap with parameters of type MailLogger
    Constructor and Description
    `Protocol(String host, int port, Properties props, String prefix, boolean isSSL, MailLogger logger)` Constructor.

  - ### Uses of MailLogger in com.sun.mail.imap

    Fields in com.sun.mail.imap declared as MailLogger
    Modifier and Type | Field and Description
    --- | ---
    `protected MailLogger` | IMAPStore.`logger`
    `protected MailLogger` | IMAPFolder.`logger`

  - ### Uses of MailLogger in com.sun.mail.imap.protocol

    Constructors in com.sun.mail.imap.protocol with parameters of type MailLogger
    Constructor and Description
    `IMAPProtocol(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger)` Constructor.
    `IMAPSaslAuthenticator(IMAPProtocol pr, String name, Properties props, MailLogger logger, String host)`

  - ### Uses of MailLogger in com.sun.mail.smtp

    Constructors in com.sun.mail.smtp with parameters of type MailLogger
    Constructor and Description
    `DigestMD5(MailLogger logger)`
    `SMTPSaslAuthenticator(SMTPTransport pr, String name, Properties props, MailLogger logger, String host)`

  - ### Uses of MailLogger in com.sun.mail.util

    Fields in com.sun.mail.util declared as MailLogger
    Modifier and Type | Field and Description
    --- | ---
    `protected MailLogger` | LogOutputStream.`logger`

    Methods in com.sun.mail.util that return MailLogger
    Modifier and Type | Method and Description
    --- | ---
    `MailLogger` | MailLogger.`getLogger(Class<?> clazz, String prefix)` Create a MailLogger using the specified class' package name as the Logger name and the specified prefix.
    `MailLogger` | MailLogger.`getLogger(String name, String prefix)` Create a MailLogger that uses a Logger with the specified name and prefix.
    `MailLogger` | MailLogger.`getSubLogger(String subname, String prefix)` Create a MailLogger that uses a Logger whose name is composed of this MailLogger's name plus the specified sub-name, separated by a dot.
    `MailLogger` | MailLogger.`getSubLogger(String subname, String prefix, boolean debug)` Create a MailLogger that uses a Logger whose name is composed of this MailLogger's name plus the specified sub-name, separated by a dot.

    Constructors in com.sun.mail.util with parameters of type MailLogger
    Constructor and Description
    `LogOutputStream(MailLogger logger)` Log to the specified logger.
    `TraceInputStream(InputStream in, MailLogger logger)` Creates an input stream filter built on top of the specified input stream.
    `TraceOutputStream(OutputStream out, MailLogger logger)` Creates an output stream filter built on top of the specified underlying output stream.

Copyright © 2016 Oracle. All rights reserved.