View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.tools.logging;
12  
13  import java.io.File;
14  import java.sql.Timestamp;
15  
16  import psiprobe.model.Application;
17  
18  /**
19   * The Interface LogDestination.
20   */
21  public interface LogDestination {
22  
23    /**
24     * Gets the application.
25     *
26     * @return the application
27     */
28    Application getApplication();
29  
30    /**
31     * Checks if is root.
32     *
33     * @return true, if is root
34     */
35    boolean isRoot();
36  
37    /**
38     * Checks if is context.
39     *
40     * @return true, if is context
41     */
42    boolean isContext();
43  
44    /**
45     * Gets the name.
46     *
47     * @return the name
48     */
49    String getName();
50  
51    /**
52     * Gets the index.
53     *
54     * @return the index
55     */
56    String getIndex();
57  
58    /**
59     * Gets the target class.
60     *
61     * @return the target class
62     */
63    String getTargetClass();
64  
65    /**
66     * Gets the conversion pattern.
67     *
68     * @return the conversion pattern
69     */
70    String getConversionPattern();
71  
72    /**
73     * Gets the file.
74     *
75     * @return the file
76     */
77    File getFile();
78  
79    /**
80     * Gets the size.
81     *
82     * @return the size
83     */
84    long getSize();
85  
86    /**
87     * Gets the last modified.
88     *
89     * @return the last modified
90     */
91    Timestamp getLastModified();
92  
93    /**
94     * Type of the log, e.g. "log4j", "jdk", "commons-" etc.
95     *
96     * @return the class of the log
97     */
98    String getLogType();
99  
100   /**
101    * Gets the level.
102    *
103    * @return the level
104    */
105   String getLevel();
106 
107   /**
108    * Gets the valid levels.
109    *
110    * @return the valid levels
111    */
112   String[] getValidLevels();
113 
114   /**
115    * Gets the encoding of the file.
116    *
117    * @return the encoding name
118    */
119   String getEncoding();
120 }