KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > framework > internal > defaultadaptor > DefaultLog


1 /*******************************************************************************
2  * Copyright (c) 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.osgi.framework.internal.defaultadaptor;
13
14 import java.io.*;
15 import org.eclipse.osgi.framework.log.FrameworkLog;
16 import org.eclipse.osgi.framework.log.FrameworkLogEntry;
17 import org.osgi.framework.FrameworkEvent;
18
19 /*
20  * This is an empty implementation that does no actually logging.
21  */

22 public class DefaultLog implements FrameworkLog {
23
24     public DefaultLog() {
25     }
26
27     public void log(FrameworkEvent frameworkEvent) {
28     }
29
30     public void log(FrameworkLogEntry logEntry) {
31     }
32
33     public void setWriter(Writer newWriter, boolean append) {
34     }
35
36     public void setFile(File newFile, boolean append) throws IOException {
37     }
38
39     public File getFile() {
40         return null;
41     }
42
43     public void setConsoleLog(boolean consoleLog) {
44     }
45
46     public void close() {
47     }
48
49 }
50
Popular Tags