2 * JCarder -- cards Java programs to keep threads disentangled
4 * Copyright (C) 2006-2007 Enea AB
5 * Copyright (C) 2007 Ulrik Svensson
6 * Copyright (C) 2007 Joel Rosdahl
8 * This program is made available under the GNU GPL version 2, with a special
9 * exception for linking with JUnit. See the accompanying file LICENSE.txt for
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE.
17 package com.enea.jcarder.util.logging;
19 import com.enea.jcarder.util.logging.Logger.Level;
22 * This interface must be implemented by classes that handles log messages from
25 public interface Handler {
27 * Handle a published message.
29 * This method is called by a Logger class each time it receives a message
32 * @param level Log level of the message.
33 * @param message The message.
35 void publish(Level level, String message);