~massive-dynamics-staff/modger/trunk

« back to all changes in this revision

Viewing changes to Modger/src/main/java/biz/massivedynamics/modger/message/handler/impl/external/JDKLoggerMessageHandler.java

  • Committer: Cruz Julian Bishop
  • Date: 2012-04-19 06:57:24 UTC
  • Revision ID: cruzjbishop@gmail.com-20120419065724-fqxdmloianqbbn1m
Javadoc in MessageHandler classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import java.util.logging.Logger;
31
31
 
32
32
/**
33
 
 * A message handler that forwards log messages to java.util.logging.Logger
 
33
 * A {@link MessageHandler} that forwards {@link Message}s to a {@link Logger}
34
34
 *
35
35
 * @author Cruz Bishop
36
36
 * @since 1.1.0.0
38
38
public class JDKLoggerMessageHandler extends MessageHandler {
39
39
    
40
40
    /**
41
 
     * Creates a new JDKLoggerMessageHandler
 
41
     * Creates a new {@link JDKLoggerMessageHandler}
42
42
     * 
43
43
     * @since 1.1.0.0
44
44
     */
45
45
    public JDKLoggerMessageHandler() {}
46
46
    
47
47
    /**
48
 
     * Creates a new JDKLoggerMessageHandler
 
48
     * Creates a new {@link JDKLoggerMessageHandler} with a specific name
49
49
     * 
50
50
     * @param name The name to use
51
51
     * @since 1.1.0.0
55
55
    }
56
56
    
57
57
    /**
58
 
     * Creates a new JDKLoggerMessageHandler
 
58
     * Creates a new {@link Logger}, using the name of the specified Modger {@link biz.massivedynamics.modger.Logger}
59
59
     * 
60
60
     * @param logger The Modger logger to base this logger from
61
61
     * @since 1.1.0.0
65
65
    }
66
66
    
67
67
    /**
68
 
     * The logger to use
 
68
     * The {@link Logger} to use
69
69
     * 
70
70
     * @since 1.1.0.0
71
71
     */
72
72
    private Logger logger;
73
73
    
74
74
    /**
75
 
     * Gets the logger to use
 
75
     * Gets the {@link Logger} to use
76
76
     * 
77
 
     * @return The logger
 
77
     * @return The {@link Logger}
78
78
     * @since 1.1.0.0
79
79
     */
80
80
    public Logger getLogger() {
120
120
    }
121
121
 
122
122
    /**
123
 
     * Submits the specified message
 
123
     * Submits the specified {@link Message}
124
124
     * 
125
 
     * @param message The message
126
 
     * @throws Exception Any exceptions that occur
 
125
     * @param message The {@link Message} to submit
 
126
     * @throws Exception Any {@link Exception}s that occur
127
127
     * @since 1.1.0.0
128
128
     */
129
129
    @Override
135
135
    }    
136
136
 
137
137
    /**
138
 
     * Submits the specified message with the attached cause
 
138
     * Submits the specified {@link Message} with an attached {@link Throwable} cause
139
139
     * 
140
 
     * @param message The message
141
 
     * @param cause The cause
142
 
     * @throws Exception Any exceptions that occur
 
140
     * @param message The {@link Message} to submit
 
141
     * @param cause The attached {@link Throwable} cause
 
142
     * @throws Exception Any {@link Exception}s that occur
143
143
     */
144
144
    @Override
145
145
    public void submit(Message message, Throwable cause) throws Exception {