1 18 package org.objectweb.util.monolog.api; 19 20 26 public interface Handler { 27 28 31 36 byte FILE_HANDLER_TYPE = 1; 37 38 43 byte CONSOLE_HANDLER_TYPE = 2; 44 45 49 byte ROLLING_FILE_HANDLER_TYPE = 3; 50 51 56 byte GENERIC_HANDLER_TYPE = 4; 57 58 62 byte LOGGER_HANDLER_TYPE = 5; 63 64 68 byte JMX_HANDLER_TYPE = 6; 69 70 73 String OUTPUT_ATTRIBUTE = "output"; 74 String PATTERN_ATTRIBUTE = "pattern"; 75 String LEVEL_ATTRIBUTE = "level"; 76 77 String APPEND_MODE_ATTRIBUTE = "appendMode"; 78 79 String FILE_NUMBER_ATTRIBUTE = "fileNumber"; 80 String MAX_SIZE_ATTRIBUTE = "maxSize"; 81 String BUFFER_ATTRIBUTE = "bufferSize"; 82 83 84 87 String getName(); 88 89 92 void setName(String name); 93 94 97 String getType(); 98 99 102 String [] getAttributeNames(); 103 104 108 Object getAttribute(String name); 109 110 116 Object setAttribute(String name, Object value); 117 } 118 | Popular Tags |