Class AppLogEvent

  • All Implemented Interfaces:

    public class AppLogEvent
    extends java.lang.Object
    Event log definition
    See Also:
    Serialized Form
    • Constructor Detail

      • AppLogEvent

        public AppLogEvent​(java.lang.String id,
                           java.lang.String code,
                           char type,
                           char level,
                           char[] canal,
                           java.util.Map<java.lang.String,​java.lang.String> labels,
                           boolean enabled,
                           int depth)
        id - Event id
        code - Event code
        type - log type
        level - Level Fatal Error Warn Info Debug
        canal - Output table: Stdout, File, DB
        labels - Message to display with [n] to be replaced with contextual data
        enabled - Enabled ?
        depth - Logs depth AppLogEvent.DEPTH_*
    • Method Detail

      • toLogger

        public boolean toLogger()
      • toDB

        public boolean toDB()
      • toLog4j

        public final boolean toLog4j()
        Use toLogger
      • getId

        public java.lang.String getId()
      • getCode

        public java.lang.String getCode()
      • getType

        public char getType()
      • getLevel

        public char getLevel()
      • setLevel

        public void setLevel​(char level)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getDepth

        public int getDepth()
      • setDepth

        public void setDepth​(int depth)
      • isLimitedByDays

        public boolean isLimitedByDays()
      • isLimitedbyCount

        public boolean isLimitedbyCount()
      • isUnlimited

        public boolean isUnlimited()
      • getDisplay

        public java.lang.String getDisplay​(java.lang.String lang,
                                           java.lang.String[] params)
      • getLabel

        public java.lang.String getLabel​(java.lang.String lang,
                                         java.lang.String[] params)
      • setDisplay

        public void setDisplay​(java.lang.String lang,
                               java.lang.String text)
      • setLabel

        public void setLabel​(java.lang.String lang,
                             java.lang.String text)
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Generates a JSON object representation of the log event
        log event object as JSON object
      • toString

        public java.lang.String toString()
        Generates a string representation of the log event
        toString in class java.lang.Object
        log event object as string