| 1 |
# |
| 2 |
# Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. |
| 3 |
# Copyright (c) 2009, 2018 Jason Mehrens. All Rights Reserved. |
| 4 |
# |
| 5 |
# This program and the accompanying materials are made available under the |
| 6 |
# terms of the Eclipse Distribution License v. 1.0, which is available at |
| 7 |
# http://www.eclipse.org/org/documents/edl-v10.php. |
| 8 |
# |
| 9 |
# SPDX-License-Identifier: BSD-3-Clause |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
# This can be used by setting the system property |
| 15 |
# -Djava.util.logging.config.file=path to this file |
| 16 |
|
| 17 |
# Taken from the JDK defaults. |
| 18 |
handlers= java.util.logging.ConsoleHandler |
| 19 |
.level= INFO |
| 20 |
java.util.logging.ConsoleHandler.level = INFO |
| 21 |
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter |
| 22 |
|
| 23 |
|
| 24 |
# Set the mail handler demo logger level |
| 25 |
MailHandlerDemo.level = ALL |
| 26 |
|
| 27 |
# Configure the MailHandler. |
| 28 |
com.sun.mail.util.logging.MailHandler.level = ALL |
| 29 |
com.sun.mail.util.logging.MailHandler.mail.host = my-mail-server |
| 30 |
com.sun.mail.util.logging.MailHandler.mail.from = [email protected] |
| 31 |
com.sun.mail.util.logging.MailHandler.mail.to = [email protected] |
| 32 |
com.sun.mail.util.logging.MailHandler.verify = local |
| 33 |
|
| 34 |
# Add attachments if needed. |
| 35 |
#com.sun.mail.util.logging.MailHandler.attachment.formatters = java.util.logging.SimpleFormatter, java.util.logging.XMLFormatter |
| 36 |
|
| 37 |
# No filters. |
| 38 |
#com.sun.mail.util.logging.MailHandler.attachment.filters = null, null |
| 39 |
|
| 40 |
# Formatter class name or strings. |
| 41 |
#com.sun.mail.util.logging.MailHandler.attachment.names = simple.txt, error.xml |
| 42 |
|
| 43 |
|
| 44 |
# Store messages on error by installing the FileErrorManager (demo code). |
| 45 |
com.sun.mail.util.logging.MailHandler.errorManager = FileErrorManager |
| 46 |
|
| 47 |
# Configure the FileErrorManager for demo (not required). |
| 48 |
# FileErrorManager.pattern = path-to-dir |
| 49 |
|
| 50 |
# Debug mail transport issues. |
| 51 |
mail.debug = false |