File tree 4 files changed +22
-18
lines changed
src/main/java/com/taobao/arthas/core
4 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 216
216
<scope >provided</scope >
217
217
<optional >true</optional >
218
218
</dependency >
219
+ <dependency >
220
+ <groupId >commons-lang</groupId >
221
+ <artifactId >commons-lang</artifactId >
222
+ <version >2.6</version >
223
+ <scope >compile</scope >
224
+ </dependency >
225
+ <dependency >
226
+ <groupId >com.google.guava</groupId >
227
+ <artifactId >guava</artifactId >
228
+ <version >27.0.1-jre</version >
229
+ <scope >compile</scope >
230
+ </dependency >
219
231
</dependencies >
220
232
221
- </project >
233
+ </project >
Original file line number Diff line number Diff line change 1
1
package com .taobao .arthas .core .command .express ;
2
2
3
- import com .taobao .arthas .core . util . LogUtil ;
4
- import com .taobao . middleware . logger . Logger ;
3
+ import com .alibaba .arthas .deps . org . slf4j . Logger ;
4
+ import com .alibaba . arthas . deps . org . slf4j . LoggerFactory ;
5
5
6
6
/**
7
7
* @author xhinliang
8
8
*/
9
9
public class MvelExpress implements Express {
10
10
11
- private final Logger logger = LogUtil . getArthasLogger ( );
11
+ private static final Logger logger = LoggerFactory . getLogger ( MvelExpress . class );
12
12
13
13
private final MvelEvalKiller evalKiller ;
14
14
@@ -21,7 +21,7 @@ public Object get(String express) throws ExpressException {
21
21
try {
22
22
return evalKiller .eval (express );
23
23
} catch (Exception e ) {
24
- logger .error (null , "Error during evaluating the expression:" , e );
24
+ logger .error ("Error during evaluating the expression:" , e );
25
25
throw new ExpressException (express , e );
26
26
}
27
27
}
Original file line number Diff line number Diff line change 4
4
5
5
import org .apache .commons .lang .exception .ExceptionUtils ;
6
6
7
+ import com .alibaba .arthas .deps .org .slf4j .Logger ;
8
+ import com .alibaba .arthas .deps .org .slf4j .LoggerFactory ;
7
9
import com .google .common .base .Joiner ;
8
10
import com .taobao .arthas .core .command .Constants ;
9
11
import com .taobao .arthas .core .command .express .Express ;
13
15
import com .taobao .arthas .core .shell .command .AnnotatedCommand ;
14
16
import com .taobao .arthas .core .shell .command .Command ;
15
17
import com .taobao .arthas .core .shell .command .CommandProcess ;
16
- import com .taobao .arthas .core .util .LogUtil ;
17
18
import com .taobao .arthas .core .util .StringUtils ;
18
19
import com .taobao .arthas .core .view .ObjectView ;
19
20
import com .taobao .middleware .cli .annotations .Argument ;
20
21
import com .taobao .middleware .cli .annotations .Description ;
21
22
import com .taobao .middleware .cli .annotations .Name ;
22
23
import com .taobao .middleware .cli .annotations .Option ;
23
24
import com .taobao .middleware .cli .annotations .Summary ;
24
- import com .taobao .middleware .logger .Logger ;
25
25
26
26
/**
27
27
*
41
41
)
42
42
public class MvelCommand extends AnnotatedCommand {
43
43
44
- private static final Logger logger = LogUtil . getArthasLogger ( );
44
+ private static final Logger logger = LoggerFactory . getLogger ( MvelCommand . class );
45
45
46
46
private String express ;
47
47
Original file line number Diff line number Diff line change 1
1
package com .taobao .arthas .core .util ;
2
2
3
- import com .alibaba .arthas .deps .org .slf4j .Logger ;
4
- import com .alibaba .arthas .deps .org .slf4j .LoggerFactory ;
5
- import com .taobao .arthas .common .PidUtils ;
6
- import com .taobao .arthas .core .shell .ShellServerOptions ;
7
- import com .taobao .text .Color ;
8
- import com .taobao .text .Decoration ;
9
- import com .taobao .text .ui .TableElement ;
10
- import com .taobao .text .util .RenderUtil ;
11
-
12
3
import java .io .InputStream ;
13
4
import java .util .Collections ;
14
5
import java .util .Map ;
15
6
import java .util .Map .Entry ;
16
7
8
+ import com .alibaba .arthas .deps .org .slf4j .Logger ;
9
+ import com .alibaba .arthas .deps .org .slf4j .LoggerFactory ;
17
10
import com .taobao .arthas .common .PidUtils ;
18
11
import com .taobao .arthas .core .shell .ShellServerOptions ;
19
- import com .taobao .middleware .logger .Logger ;
20
12
import com .taobao .text .ui .TableElement ;
21
13
import com .taobao .text .util .RenderUtil ;
22
14
You can’t perform that action at this time.
0 commit comments