APISonar


ohi.andre.consolelauncher.tuils.Tuils.log

> ohi > andre > consolelauncher > tuils > Tuils > log
ohi APIs andre APIs consolelauncher APIs tuils APIs Tuils APIs log APIs

Example 1
private void updateCmds(String cmd) {
        try {
            int lastNull = lastNull();
            int toCopy = lastNull == -1 ? lastCommands.length - 1 : lastNull;
            System.arraycopy(lastCommands, 0, lastCommands, 1, toCopy);
            lastCommands[0] = formatInput(cmd, inputFormat, prefix, suPrefix, inputColor, timeColor);
        } catch (Exception e) {
            Tuils.log(e);
        }
    }
Example 2
public String onArgNotFound(ExecutePack pack, int indexNotFound) {
        Tuils.log("inf", indexNotFound);
        if(indexNotFound == 0) {
            try {
                Tuils.log("last");
                String param = pack.get(String.class, 0);
                return pack.context.getString(R.string.output_invalid_param) + Tuils.SPACE + param;
            } catch (Exception e) {}
        }

        return pack.context.getString(helpRes());
    }
Example 3
private static ArgInfo command(String string, CommandGroup active) {
        ArgInfo i = noSpaceString(string);
        string = (String) i.arg;

        CommandAbstraction abstraction = null;
        try {
            abstraction = active.getCommandByName(string);
        } catch (Exception e) {
            Tuils.log(e);
            Tuils.toFile(e);
        }

        return new ArgInfo(abstraction, i.residualString, abstraction != null, 1);
    }
Example 4
public void addMessage(String header, String message) {
        for(ReloadMessageCategory cs : categories) {
            Tuils.log(cs.header, header);
            if(cs.header.equals(header)) {
                cs.lines.add(message);
                return;
            }
        }

        ReloadMessageCategory c = new ReloadMessageCategory(header);
        if(message != null) c.lines.add(message);
        categories.add(c);
    }