From 6b878bc9b1c9747b2fb742c2f31861166c3340f0 Mon Sep 17 00:00:00 2001 From: Myk Melez Date: Thu, 24 Jan 2008 17:41:36 -0800 Subject: [PATCH] make log4moz not depend on constants.js so it's easier to reuse it in another project --- services/sync/modules/log4moz.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/services/sync/modules/log4moz.js b/services/sync/modules/log4moz.js index 64b0c00b18b7..3365d40a557c 100644 --- a/services/sync/modules/log4moz.js +++ b/services/sync/modules/log4moz.js @@ -44,7 +44,19 @@ const Cr = Components.results; const Cu = Components.utils; Cu.import("resource://gre/modules/XPCOMUtils.jsm"); -Cu.import("resource://weave/constants.js"); + +const MODE_RDONLY = 0x01; +const MODE_WRONLY = 0x02; +const MODE_CREATE = 0x08; +const MODE_APPEND = 0x10; +const MODE_TRUNCATE = 0x20; + +const PERMS_FILE = 0644; +const PERMS_DIRECTORY = 0755; + +const ONE_BYTE = 1; +const ONE_KILOBYTE = 1024 * ONE_BYTE; +const ONE_MEGABYTE = 1024 * ONE_KILOBYTE; const Log4Moz = {}; Log4Moz.Level = {};