74ac348fa2a8251739bd38cd78dc603a4118fc6d
[IRC.git] / Robust / Transactions / jcarderdstm2version / src / com / enea / jcarder / util / logging / Handler.java
1 /*
2  * JCarder -- cards Java programs to keep threads disentangled
3  *
4  * Copyright (C) 2006-2007 Enea AB
5  * Copyright (C) 2007 Ulrik Svensson
6  * Copyright (C) 2007 Joel Rosdahl
7  *
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
10  * details.
11  *
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.
15  */
16
17 package com.enea.jcarder.util.logging;
18
19 import com.enea.jcarder.util.logging.Logger.Level;
20
21 /**
22  * This interface must be implemented by classes that handles log messages from
23  * the Logger class.
24  */
25 public interface Handler {
26     /**
27      * Handle a published message.
28      *
29      * This method is called by a Logger class each time it receives a message
30      * to be logged.
31      *
32      * @param level Log level of the message.
33      * @param message The message.
34      */
35     void publish(Level level, String message);
36 }