/** * Obtains a {@link Logging} for a specified destination. * * @param destination the destination of the {@link Logging} * * @return a {@link Logging} for the specified destination */ public static Logging to(String destination) { return new Logging(destination, null); }
/** * Obtains a {@link Logging} for the stderr. * * @return a {@link Logging} for the stderr */ public static Logging toStdErr() { return new Logging("stderr", null); }
/** * Obtains a {@link Logging} for the stdout. * * @return a {@link Logging} for the stdout */ public static Logging toStdOut() { return new Logging("stdout", null); }
/** * Obtains a {@link Logging} for the specified level. * * @param level the level of the {@link Logging} * * @return a {@link Logging} for the specified level */ public static Logging at(int level) { return new Logging(null, level); }
@Override public Logging compose(Logging other) { return new Logging(this.destination == null ? other.destination : this.destination, this.level == null ? other.level : this.level); }
@Override public Logging compose(Logging other) { return new Logging(this.destination == null ? other.destination : this.destination, this.level == null ? other.level : this.level); }
/** * Obtains a {@link Logging} for the stderr. * * @return a {@link Logging} for the stderr */ public static Logging toStdErr() { return new Logging("stderr", null); }
/** * Obtains a {@link Logging} for the stdout. * * @return a {@link Logging} for the stdout */ public static Logging toStdOut() { return new Logging("stdout", null); }
/** * Obtains a {@link Logging} for a specified destination. * * @param destination the destination of the {@link Logging} * * @return a {@link Logging} for the specified destination */ public static Logging to(String destination) { return new Logging(destination, null); }
@Override public Logging compose(Logging other) { return new Logging(this.destination == null ? other.destination : this.destination, this.level == null ? other.level : this.level); }
/** * Obtains a {@link Logging} for a specified destination. * * @param destination the destination of the {@link Logging} * * @return a {@link Logging} for the specified destination */ public static Logging to(String destination) { return new Logging(destination, null); }
/** * Obtains a {@link Logging} for the specified level. * * @param level the level of the {@link Logging} * * @return a {@link Logging} for the specified level */ public static Logging at(int level) { return new Logging(null, level); }
/** * Obtains a {@link Logging} for the stderr. * * @return a {@link Logging} for the stderr */ public static Logging toStdErr() { return new Logging("stderr", null); }
/** * Obtains a {@link Logging} for the stdout. * * @return a {@link Logging} for the stdout */ public static Logging toStdOut() { return new Logging("stdout", null); }
/** * Obtains a {@link Logging} for the specified level. * * @param level the level of the {@link Logging} * * @return a {@link Logging} for the specified level */ public static Logging at(int level) { return new Logging(null, level); }