// --- BEGIN COPYRIGHT BLOCK --- // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this program; if not, write to the Free Software Foundation, Inc., // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // // (C) 2007 Red Hat, Inc. // All rights reserved. // --- END COPYRIGHT BLOCK --- package com.netscape.certsrv.logging; import java.io.Serializable; import java.util.Locale; /** * An interface which all loggable events must implement. CMS comes * with a limited set of ILogEvent types to implement: audit, system, and * signed audit. This is the base class of all the subsequent implemented types. * A log event represents a certain kind of log message designed for a specific purpose. * For instance, an audit type event represents messages having to do with auditable CMS * actions. The resulting message will ultimately appear into a specific log file. * * @version $Revision$, $Date$ */ public interface ILogEvent extends Serializable { /** * Retrieves event time stamp. * * @return Long integer of the time the event was created. */ public long getTimeStamp(); /** * Retrieves log source. * This is an id of the subsystem responsible * for creating the log event. * * @return Integer source id. */ public int getSource(); /** * Retrieves log level. * The log level of an event represents its relative importance * or severity within CMS. * * @return Integer log level value. */ public int getLevel(); /** * Retrieves NT specific log event type. * * @return Integer NTEventType value. */ public int getNTEventType(); /** * Retrieves multiline attribute. * Does this message consiste of more than one line. * * @return Boolean of multiline status. */ public boolean getMultiline(); /** * Retrieves log event type. Each type of event * has an associated String type value. * * @return String containing the type of event. */ public String getEventType(); /** * Sets log event type. Each type of event * has an associated String type value. * * @param eventType String containing the type of event. */ public void setEventType(String eventType); /** * Returns localized message string. This method should * only be called if a localized string is necessary. *
* * @return Details message. */ public String toContent(); /** * Returns the string based on the given locale. *
*
* @param locale locale
* @return Details message.
*/
public String toContent(Locale locale);
}
]y^O*&ۣٓyjh(vUVi5=0ZsZ@p̀QMGsbӖGla'Jȇ
KW3#5L>7 $f[n;50T(8..|Wl/Tmb̙]B]4t
]$s:H7=Z{۵ڝlP>{::w+⼘:L(ۡ;BAK55:3ԡ
D>':eЯJonh2
SK#)]>p&FȊÕ,qpyjIMtNuԼۋbH(
%<`D>"4QqnߒFf!3{|gsʞX
j*xNMj̿ćP@O{#~n`28l՛Ps\zx;{b$Rg,L=N]>gv%Ӷ*%A9JcМUP{^W8I&OXff\jZ${xfP!HZ,/3jV#<R+r3JMJwtH⚨QWB6i׳d¢
J94`?Т~%cI}jbSNe۹5%s/+E8F%)
8>}t8Msn{1?6v:a"进r6iŏc˥v2/h$=#
_4+ #0oa$^<7iQJ] v!%3 Y 6?A{/&ͷ]YCQ'GRͭ~S2dYUlM!Jxٿg
B"*ŖЛ׃\GO252U\r!r0ںT8"?c@r^GXEV6v!AحPR˷^Qϵ=qΦi NƑ5[YcvF6Β*!Z #:6bo ك
PKlGhk
m^jT??(xZXk!g.رJ9|IVq0>o3HAFy[7H7g욃P"*-<P ٝ>̀\.N7\g.$&(cYmdAZ`_Лθ
Xkb~J\u|q
OZ4ª?"",ᝀ
8ĸѢЯpZY$fWo>SVTl)ԑOk5dϩRC㋨9X{៌*!Ƌ65wK|p
Z4fq#v9^tQuC n
+O·q]ߦ{J%aQaD&|0u1iL'u#o-$uUcoM[v@J
Mr\u{T3N1x:'
ta.$B.s:y)s0/Tc;9Ր&o8 Lܮܕ3NI%o ORBpM=1`j?mSC.6k}|h1-E8XCZ#