-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
63 lines (52 loc) · 2.57 KB
/
Copy pathindex.js
File metadata and controls
63 lines (52 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* Copyright 2013 Tim Down.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* log4javascript
*
* log4javascript is a logging framework for JavaScript based on log4j
* for Java. This file contains all core log4javascript code and is the only
* file required to use log4javascript, unless you require support for
* document.domain, in which case you will also need console.html, which must be
* stored in the same directory as the main log4javascript.js file.
*
* Author: Tim Down <tim@log4javascript.org>
* Version: 1.4.6
* Edition: log4javascript
* Build date: 19 March 2013
* Website: http://log4javascript.org
*/
/* -------------------------------------------------------------------------- */
var log4js = require('./lib/log4js');
log4js.AjaxAppender = require('./lib/appenders/ajax-appender');
log4js.AlertAppender = require('./lib/appenders/alert-appender');
log4js.Appender = require('./lib/appenders/appender');
log4js.BrowserConsoleAppender = require('./lib/appenders/browser-console-appender');
log4js.InMemoryQueueAppender = require('./lib/appenders/in-memory-queue-appender');
log4js.SimpleDateFormat = require('./lib/formats/simple-date-format');
log4js.HttpPostDataLayout = require('./lib/layouts/http-post-data-layout');
log4js.JsonLayout = require('./lib/layouts/json-layout');
log4js.InMemoryObjectLayout = require('./lib/layouts/in-memory-object-layout');
log4js.Layout = require('./lib/layouts/layout');
log4js.NullLayout = require('./lib/layouts/null-layout');
log4js.PatternLayout = require('./lib/layouts/pattern-layout');
log4js.SimpleLayout = require('./lib/layouts/simple-layout');
log4js.XmlLayout = require('./lib/layouts/xml-layout');
log4js.Level = require('./lib/level');
log4js.dumpToConsole = function(numMessages) {
log4js.inMemoryLogger.dumpToConsole(numMessages);
}
require('./lib/util/util').setLog4js(log4js);
module.exports = exports = log4js;