Class AppLogEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class AppLogEvent
    extends java.lang.Object
    implements java.io.Serializable
    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)
        Constructor
        Parameters:
        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

        @Deprecated
        public final boolean toLog4j()
        Deprecated.
        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
        Returns:
        log event object as JSON object
      • toString

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