• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 9907372175

12 Jul 2024 11:49AM UTC coverage: 61.142% (-0.02%) from 61.162%
9907372175

push

github

hohwille
fixed tests

1997 of 3595 branches covered (55.55%)

Branch coverage included in aggregate %.

5296 of 8333 relevant lines covered (63.55%)

2.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
cli/src/main/java/com/devonfw/tools/ide/log/IdeLogLevel.java
1
package com.devonfw.tools.ide.log;
2

3
import com.devonfw.tools.ide.context.IdeContext;
4

5
/**
6
 * {@link Enum} with the available log-levels.
7
 *
8
 * @see IdeContext#level(IdeLogLevel)
9
 */
10
public enum IdeLogLevel {
3✔
11

12
  /** {@link IdeLogLevel} for tracing (very detailed and verbose logging). */
13
  TRACE("\033[38;5;240m"),
7✔
14

15
  /** {@link IdeLogLevel} for debugging (more detailed logging). */
16
  DEBUG("\033[90m"),
7✔
17

18
  /** {@link IdeLogLevel} for general information (regular logging). */
19
  INFO(null),
7✔
20

21
  /**
22
   * {@link IdeLogLevel} for a step (logs the step name and groups the following log statements until the next step).
23
   */
24
  STEP("\033[35m"),
7✔
25

26
  /** {@link IdeLogLevel} for user interaction (e.g. questions or options). */
27
  INTERACTION("\033[96m"),
7✔
28

29
  /** {@link IdeLogLevel} for success (an important aspect has been completed successfully). */
30
  SUCCESS("\033[92m"),
7✔
31

32
  /** {@link IdeLogLevel} for a warning (something unexpected or abnormal happened but can be compensated). */
33
  WARNING("\033[93m"),
7✔
34

35
  /**
36
   * {@link IdeLogLevel} for an error (something failed and we cannot proceed or the user has to continue with extreme care).
37
   */
38
  ERROR("\033[91m");
7✔
39

40
  private final String color;
41

42
  /**
43
   * The constructor.
44
   */
45
  private IdeLogLevel(String color) {
4✔
46

47
    this.color = color;
3✔
48
  }
1✔
49

50
  /**
51
   * @return the prefix to append for colored output to set color according to this {@link IdeLogLevel}.
52
   */
53
  public String getStartColor() {
54

55
    return this.color;
×
56
  }
57

58
  /**
59
   * @return the suffix to append for colored output to reset to default color.
60
   */
61
  public String getEndColor() {
62

63
    return "\033[0m"; // reset color
×
64
  }
65

66
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc