|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.codereligion.cherry.junit.logback.LogSpec
public class LogSpec
Holds a Logger and a Level which specify the log events which should be recorded.
| Constructor Summary | |
|---|---|
LogSpec(Class<?> type,
ch.qos.logback.classic.Level level)
Creates a new instance which will fetch the Logger specified by the given type and which will use the given level. |
|
LogSpec(String loggerName,
ch.qos.logback.classic.Level level)
Creates a new instance which will fetch the Logger specified by the given loggerName and which will use the given
level. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
ch.qos.logback.classic.Level |
getLevel()
The Level associated witht this spec. |
ch.qos.logback.classic.Logger |
getLogger()
The Logger associated with this spec. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogSpec(Class<?> type,
ch.qos.logback.classic.Level level)
Logger specified by the given type and which will use the given level.
type - the type which identifies the loggerlevel - the level to use
IllegalArgumentException - when any of the given arguments are null
public LogSpec(String loggerName,
ch.qos.logback.classic.Level level)
Logger specified by the given loggerName and which will use the given
level.
loggerName - the name which identifies the loggerlevel - the level to use
IllegalArgumentException - when any of the given arguments are null| Method Detail |
|---|
public ch.qos.logback.classic.Level getLevel()
Level associated witht this spec.
public ch.qos.logback.classic.Logger getLogger()
Logger associated with this spec.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||