1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
7 // Adapts a `Log.sys.mjs` logger so that it can be used from native (Rust) code.
8 // The synced bookmarks mirror and bridged engines implement this interface
9 // to hook in to the services `LogManager` infrastructure.
10 [scriptable
, uuid(c92bfe0d
-50b7
-4a7f
-9686-fe5335a696b9
)]
11 interface mozIServicesLogSink
: nsISupports
{
12 const short LEVEL_OFF
= 0;
13 const short LEVEL_ERROR
= 1;
14 const short LEVEL_WARN
= 2;
15 const short LEVEL_INFO
= 3;
16 const short LEVEL_DEBUG
= 4;
17 const short LEVEL_TRACE
= 5;
19 attribute
short maxLevel
;
21 void error
(in AString
message);
22 void warn
(in AString
message);
23 void debug
(in AString
message);
24 void trace
(in AString
message);
25 void info
(in AString
message);