PageRenderTime 28ms CodeModel.GetById 18ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/apache-log4j-1.2.17/src/main/java/org/apache/log4j/lf5/StartLogFactor5.java

#
Java | 81 lines | 12 code | 18 blank | 51 comment | 0 complexity | 4111a98bb60a5b1122953c0ac340031d MD5 | raw file
Possible License(s): Apache-2.0
 1/*
 2 * Licensed to the Apache Software Foundation (ASF) under one or more
 3 * contributor license agreements.  See the NOTICE file distributed with
 4 * this work for additional information regarding copyright ownership.
 5 * The ASF licenses this file to You under the Apache License, Version 2.0
 6 * (the "License"); you may not use this file except in compliance with
 7 * the License.  You may obtain a copy of the License at
 8 * 
 9 *      http://www.apache.org/licenses/LICENSE-2.0
10 * 
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17package org.apache.log4j.lf5;
18
19import org.apache.log4j.lf5.viewer.LogBrokerMonitor;
20
21/**
22 * Starts an instance of the LogFactor5 console for off-line viewing.
23 *
24 * @author Brad Marlborough
25 * @author Richard Hurst
26 */
27
28// Contributed by ThoughtWorks Inc.
29
30public class StartLogFactor5 {
31  //--------------------------------------------------------------------------
32  //   Constants:
33  //--------------------------------------------------------------------------
34
35  //--------------------------------------------------------------------------
36  //   Protected Variables:
37  //--------------------------------------------------------------------------
38
39  //--------------------------------------------------------------------------
40  //   Private Variables:
41  //--------------------------------------------------------------------------
42
43  //--------------------------------------------------------------------------
44  //   Constructors:
45  //--------------------------------------------------------------------------
46
47  //--------------------------------------------------------------------------
48  //   Public Methods:
49  //--------------------------------------------------------------------------
50
51  /**
52   * Main - starts a an instance of the LogFactor5 console and configures
53   * the console settings.
54   */
55  public final static void main(String[] args) {
56
57    LogBrokerMonitor monitor = new LogBrokerMonitor(
58        LogLevel.getLog4JLevels());
59
60    monitor.setFrameSize(LF5Appender.getDefaultMonitorWidth(),
61        LF5Appender.getDefaultMonitorHeight());
62    monitor.setFontSize(12);
63    monitor.show();
64
65  }
66
67  //--------------------------------------------------------------------------
68  //   Protected Methods:
69  //--------------------------------------------------------------------------
70
71  //--------------------------------------------------------------------------
72  //   Private Methods:
73  //--------------------------------------------------------------------------
74
75  //--------------------------------------------------------------------------
76  //   Nested Top-Level Classes or Interfaces
77  //--------------------------------------------------------------------------
78
79}
80
81