Search in sources :

Example 1 with LOG_CHANNEL

use of main.system.auxiliary.log.LogMaster.LOG_CHANNEL in project Eidolons by IDemiurge.

the class SpecialLogger method dialog.

public void dialog() {
    LOG_CHANNEL channel = new EnumMaster<LOG_CHANNEL>().selectEnum(LOG_CHANNEL.class);
    boolean once = DialogMaster.confirm("Write once or continuously?");
}
Also used : LOG_CHANNEL(main.system.auxiliary.log.LogMaster.LOG_CHANNEL)

Example 2 with LOG_CHANNEL

use of main.system.auxiliary.log.LogMaster.LOG_CHANNEL in project Eidolons by IDemiurge.

the class LogFileMaster method writeAll.

public void writeAll() {
    if (LogFileMaster.writingPaused) {
        return;
    }
    if (!LogFileMaster.isDirty()) {
        return;
    }
    for (final Integer priority : priorityLogs.keySet()) {
        final List<String> entries = channelLogs.get(priority);
        new Thread(new Runnable() {

            public void run() {
                write(entries, getPriorityLogFileName(priority));
            }
        }, " thread").start();
    }
    for (LOG_CHANNEL channel : channelLogs.keySet()) {
        final List<String> entries = channelLogs.get(channel);
        if (!ListMaster.isNotEmpty(entries)) {
            continue;
        }
        final String string = channel.getLog().toString() + "\\" + channel.toString();
        new Thread(new Runnable() {

            public void run() {
                write(entries, string);
            }
        }, " thread").start();
    }
}
Also used : LOG_CHANNEL(main.system.auxiliary.log.LogMaster.LOG_CHANNEL)

Aggregations

LOG_CHANNEL (main.system.auxiliary.log.LogMaster.LOG_CHANNEL)2