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
15 /**
16 * The Class FileLogAccessor.
17 */
18 public class FileLogAccessor extends AbstractLogDestination {
19
20 /** The name. */
21 private String name;
22
23 /** The file. */
24 private File file;
25
26 @Override
27 public String getName() {
28 return name;
29 }
30
31 /**
32 * Sets the name.
33 *
34 * @param name the new name
35 */
36 public void setName(String name) {
37 this.name = name;
38 }
39
40 @Override
41 public String getTargetClass() {
42 return "stdout";
43 }
44
45 @Override
46 public String getLogType() {
47 return "stdout";
48 }
49
50 @Override
51 public String getConversionPattern() {
52 return "";
53 }
54
55 @Override
56 public File getFile() {
57 return file;
58 }
59
60 /**
61 * Sets the file.
62 *
63 * @param file the new file
64 */
65 public void setFile(File file) {
66 this.file = file;
67 }
68
69 }