Log settings in aspire

But promptly forget the next time around. Let me see if I can document as of now. I have changed the log behavior a good bit in the last release. It is not perfect but workable.


Logging.logfile=aspire:\\log\\akc.log
Logging.msgLevel = 0
Logging.trace=yes
Logging.excludeFilters=vectorMetadata:,dbrs:,

Most of the logic for logging decisions is in CLog2.java


yes
no

the values can be 'yes' or 'no'. this is a misnomer. This only applies to see if one needs to log the "exception" trace. Now that I think about it, there is no reason not to enable it in most if not all cases.


public boolean isItNecessaryToLog(int logLevel)
   {
      return (logLevel >= this.m_msgLevel);
   }

public static final String LOG_SECURITY_S = "Security";
    public static final String LOG_INFO_S = "Info";
    public static final String LOG_ERROR_S = "Error";
    public static final String LOG_WARN_S = "Warning";
    public static final String LOG_CRITICAL_S = "Fatal";

    public static final int LOG_SECURITY = 0;
    public static final int LOG_INFO = 1;
    public static final int LOG_WARN = 2;
    public static final int LOG_ERROR = 3;
    public static final int LOG_CRITICAL = 4;

warn
error
critical

Only log those messages whose message level is equal or higher

so it appears a value of 2 or 3 is better in production leaning on 3


excludeFilters
selectiveFilters

If the log message starts with these strings then either exclude them from the log or include them in the log.

if the message level of the message is high enough (worse consequence) then first see if this message is excluded. don't print it if it is excluded. then don't print it either if it is not selected.

Importantly filters take affect only after the message levels are taken into account.


Logging.logfile=aspire:\\log\\akc.log
#Print only errors and critical elements
Logging.msgLevel = 3
Logging.trace=no

I think!!!

well it didn't blew up the server :)

I have used variable arguments and string formating to not expand expressions into log methods so that the logging is efficient.