Package com.log4jviewer.logfile.fields

Examples of com.log4jviewer.logfile.fields.AbstractField


        if (patternMatcher.find()) {
            logRecord = new LogRecord();

            for (int i = 0; i < logFields.size(); i++) {
                String value = patternMatcher.group(i + 1).trim();
                AbstractField logField = logFields.get(i);
                LogFieldName fieldName = logField.getLogFieldName();
                Object fieldValue = logField.decodeValue(value);

                switch (fieldName) {
                case CATEGORY:
                    logRecord.setCategoryName((String) fieldValue);
                    break;
View Full Code Here


    private void finalizeDescriptor(final char patternChar) {
        final String isoDateFormat = "ISO8601";
        final String absTimeDateFormat = "ABSOLUTE";
        final String dateAndTimeDateFormat = "DATE";
        final String relativeTimeDateFormat = "RELATIVE";
        AbstractField logField = null;

        switch (patternChar) {
        case 'c':
            logField = new NamedField(LogFieldName.CATEGORY, leftAlign, rightAlign, extractPrecisionOption());
            break;
View Full Code Here

TOP

Related Classes of com.log4jviewer.logfile.fields.AbstractField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.