// Path: org/knapsack/shell/StringConstants.java
// public final class StringConstants {
// 
// 	/**
// 	 * The system character or characters to signify a new line.
// 	 */
// 	public static final String CRLF = System.getProperty("line.separator");
// 	
// 	/**
// 	 * Character for tab.
// 	 */
// 	public static final String TAB = " \t";
// 
// 
// 
// }


import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import org.knapsack.shell.StringConstants;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogEntry;
import org.osgi.service.log.LogReaderService;
		return sb.toString();
	}

	@Override
	public String getCommandName() {
		return "log";
	}
	
	@Override
	public String getUsage() {
		return "[-b (brief)]";
	}
	
	@Override
	public String getDescription() {
		return "Print OSGi log.";
	}
	
	private String formatDateTime(long time) {
		return dateFormatter.format(new Date(time));
	}
	
	private void addLogEntry(LogEntry entry, StringBuilder sb, boolean verbose) {

		if (verbose) {
			sb.append(formatDateTime(entry.getTime()));
			sb.append(' ');
			sb.append(getLevelLabel(entry.getLevel()));
			sb.append(' ');
			sb.append(entry.getMessage());
// Path: org/knapsack/shell/StringConstants.java
// public final class StringConstants {
// 
// 	/**
// 	 * The system character or characters to signify a new line.
// 	 */
// 	public static final String CRLF = System.getProperty("line.separator");
// 	
// 	/**
// 	 * Character for tab.
// 	 */
// 	public static final String TAB = " \t";
// 
// 
// 
// }


// Path: org/knapsack/shell/commands/LogCommand.java
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import org.knapsack.shell.StringConstants;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogEntry;
import org.osgi.service.log.LogReaderService;

		return sb.toString();
	}

	@Override
	public String getCommandName() {
		return "log";
	}
	
	@Override
	public String getUsage() {
		return "[-b (brief)]";
	}
	
	@Override
	public String getDescription() {
		return "Print OSGi log.";
	}
	
	private String formatDateTime(long time) {
		return dateFormatter.format(new Date(time));
	}
	
	private void addLogEntry(LogEntry entry, StringBuilder sb, boolean verbose) {

		if (verbose) {
			sb.append(formatDateTime(entry.getTime()));
			sb.append(' ');
			sb.append(getLevelLabel(entry.getLevel()));
			sb.append(' ');
			sb.append(entry.getMessage());
			sb.append(StringConstants.TAB);