annotate src/goodjava/logger/SimpleConfigurer.java @ 1648:224af797b1f9
Mainly small install script improvements
- Consistent usage of `$LUANHOME`, removed reliance on current directory.
- Made Luan build and install fine (on Linux) without requiring launching it via sudo. Only asks to elevate privileges if installation failed.
- Minor spelling mistake fix.
author |
Fox |
date |
Mon, 28 Mar 2022 18:00:12 +0200 |
parents |
28b1ddacfad3 |
children |
|
rev |
line source |
1450
|
1 package goodjava.logger;
|
|
2
|
|
3
|
|
4 public class SimpleConfigurer implements Configurer {
|
|
5 public final int level;
|
|
6 public final Appender appender;
|
|
7
|
|
8 public SimpleConfigurer(int level,Appender appender) {
|
|
9 this.level = level;
|
|
10 this.appender = appender;
|
|
11 }
|
|
12
|
|
13 public void configure(GoodLogger logger) {
|
|
14 logger.level = level;
|
|
15 logger.appender = appender;
|
|
16 }
|
|
17 }
|