/*
 * BEGIN FLOCK GPL
 *
 * Copyright Flock Inc. 2005-2009
 * http://flock.com
 *
 * This file may be used under the terms of the
 * GNU General Public License Version 2 or later (the "GPL"),
 * http://www.gnu.org/licenses/gpl.html
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * END FLOCK GPL
 */

#include "nsISupports.idl"

[scriptable, uuid(0da79464-f412-4ba3-a9fd-044f3e41b768)]
interface flockILoggingObserver : nsISupports {
  void emit(in PRTime aDate, in PRInt32 aLevel,
            in AString aContext, in AString aMessage);
};

%{C++

// 442bdae4-4fdc-4819-8748-c8659e415410
#define FLOCK_LOGGINGCONSOLEWRITER_CID \
{ 0x442bdae4, 0x4fdc, 0x4819, { 0x87, 0x48, 0xc8, 0x65, 0x9e, 0x41, 0x54, 0x10 } }
#define FLOCK_LOGGINGCONSOLEWRITER_CLASSNAME "Flock Logging Console Writer"
#define FLOCK_LOGGINGCONSOLEWRITER_CONTRACTID "@flock.com/logging-console-writer;1"

// b2045e5e-c742-4dbc-8fae-233f428bc9c0
#define FLOCK_LOGGINGFILEWRITER_CID \
{ 0xb2045e5e, 0xc742, 0x4dbc, { 0x8f, 0xae, 0x23, 0x3f, 0x42, 0x8b, 0xc9, 0xc0 } }
#define FLOCK_LOGGINGFILEWRITER_CLASSNAME "Flock Logging File Writer"
#define FLOCK_LOGGINGFILEWRITER_CONTRACTID "@flock.com/logging-file-writer;1"

%}
