Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging')
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/ILogger.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/LoggerFactory.java62
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/StandardLogger.java42
3 files changed, 0 insertions, 164 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/ILogger.java b/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/ILogger.java
deleted file mode 100644
index d6ae89118..000000000
--- a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/ILogger.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsdl.validation.internal.logging;
-
-/**
- * The interface for a standard logger for the WSDL validator.
- * Allows for logging errors and warnings.
- */
-public interface ILogger
-{
- /**
- * Severity error for logging.
- */
- public static int SEV_ERROR = 0;
-
- /**
- * Severity warning for logging.
- */
- public static int SEV_WARNING = 1;
-
- /**
- * Severity info for logging.
- */
- public static int SEV_INFO = 2;
-
- /**
- * Severity verbose for logging.
- */
- public static int SEV_VERBOSE = 3;
-
- /**
- * Log a message.
- *
- * @param message
- * The message to log.
- * @param severity
- * The severity of the message to log.
- */
- public void log(String message, int severity);
-
- /**
- * Log a message.
- *
- * @param message
- * The message to log.
- * @param severity
- * The severity of the message to log.
- * @param throwable
- * The exception to log.
- */
- public void log(String message, int severity, Throwable throwable);
-}
diff --git a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/LoggerFactory.java b/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/LoggerFactory.java
deleted file mode 100644
index 87a9d5fc1..000000000
--- a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/LoggerFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsdl.validation.internal.logging;
-
-/**
- * The logger factory allows for simple use of whatever logging mechanism is in
- * place. The tool can specify a custom ILogger. The WSDL validator will request the
- * logger from this class.
- */
-public class LoggerFactory
-{
- private static LoggerFactory factory = null;
- private ILogger logger = null;
-
- /**
- * Get the one and only instance of the logger factory.
- *
- * @return The one and only instance of the logger.
- */
- public static LoggerFactory getInstance()
- {
- if(factory == null)
- {
- factory = new LoggerFactory();
- }
- return factory;
- }
-
- /**
- * Set the logger implementation to be used.
- *
- * @param logger
- * The ILogger to use.
- */
- public void setLogger(ILogger logger)
- {
- this.logger = logger;
- }
-
- /**
- * Get the logger.
- *
- * @return
- * The logger.
- */
- public ILogger getLogger()
- {
- if(logger == null)
- {
- logger = new StandardLogger();
- }
- return logger;
- }
-}
diff --git a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/StandardLogger.java b/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/StandardLogger.java
deleted file mode 100644
index 50c1b2076..000000000
--- a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/StandardLogger.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.wsdl.validation.internal.logging;
-
-import java.io.PrintStream;
-
-/**
- * A logger that will print log info to standard system outputs.
- */
-public class StandardLogger implements ILogger
-{
- /* (non-Javadoc)
- * @see org.eclipse.wst.wsdl.validation.internal.logging.ILogger#log(java.lang.String, int)
- */
- public void log(String message, int severity)
- {
- PrintStream outputStream = System.out;
- if(severity == ILogger.SEV_ERROR)
- {
- outputStream = System.err;
- }
- outputStream.println(message);
- }
-
-/* (non-Javadoc)
- * @see org.eclipse.wst.wsdl.validation.internal.logging.ILogger#log(java.lang.String, int, java.lang.Throwable)
- */
- public void log(String error, int severity, Throwable throwable)
- {
- log(error, severity);
- log(throwable.toString(), severity);
- }
-}

Back to the top