-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #63: restore index.ts to enable importing module.
- Loading branch information
Showing
7 changed files
with
161 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import InvalidArgumentException from "./InvalidArgumentException"; | ||
import * as LogLevel from "./LogLevel"; | ||
import { Logger } from "./Loggers/Logger"; | ||
import { ServerLogger } from "./Loggers/ServerLogger"; | ||
import { ClientLogger } from "./Loggers/ClientLogger"; | ||
import { ProcessorBase } from "./Processors/ProcessorBase"; | ||
import { BrowserProcessor } from "./Processors/BrowserProcessor"; | ||
import { MeteorUserProcessor } from "./Processors/MeteorUserProcessor"; | ||
import { RoutingProcessor } from "./Processors/RoutingProcessor"; | ||
import { StrategyBase } from "./Strategies/StrategyBase"; | ||
import { LeveledStrategy } from "./Strategies/LeveledStrategy"; | ||
import { TrivialStrategy } from "./Strategies/TrivialStrategy"; | ||
import { SenderBase } from "./Senders/SenderBase"; | ||
import { NullSender } from "./Senders/NullSender"; | ||
import { ConsoleSender } from "./Senders/ConsoleSender"; | ||
import { MeteorClientHttpSender } from "./Senders/MeteorClientHttpSender"; | ||
import { MeteorClientMethodSender } from "./Senders/MeteorClientMethodSender"; | ||
import { MongodbSender } from "./Senders/MongodbSender"; | ||
import { TeeSender } from "./Senders/TeeSender"; | ||
declare const SyslogSender: any; | ||
export { InvalidArgumentException, LogLevel, Logger, ClientLogger, ServerLogger, ProcessorBase, BrowserProcessor, MeteorUserProcessor, RoutingProcessor, StrategyBase, LeveledStrategy, TrivialStrategy, SenderBase, NullSender, ConsoleSender, MeteorClientHttpSender, MeteorClientMethodSender, MongodbSender, SyslogSender, TeeSender, }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import InvalidArgumentException from "./InvalidArgumentException"; | ||
import * as LogLevel from "./LogLevel"; | ||
import { Logger } from "./Loggers/Logger"; | ||
import { ServerLogger } from "./Loggers/ServerLogger"; | ||
import { ClientLogger } from "./Loggers/ClientLogger"; | ||
|
||
import { ProcessorBase } from "./Processors/ProcessorBase"; | ||
import { BrowserProcessor } from "./Processors/BrowserProcessor"; | ||
import { MeteorUserProcessor } from "./Processors/MeteorUserProcessor"; | ||
import { RoutingProcessor } from "./Processors/RoutingProcessor"; | ||
|
||
import { StrategyBase } from "./Strategies/StrategyBase"; | ||
import { LeveledStrategy } from "./Strategies/LeveledStrategy"; | ||
import { TrivialStrategy } from "./Strategies/TrivialStrategy"; | ||
|
||
import { SenderBase } from "./Senders/SenderBase"; | ||
import { NullSender } from "./Senders/NullSender"; | ||
import { ConsoleSender } from "./Senders/ConsoleSender"; | ||
import { MeteorClientHttpSender } from "./Senders/MeteorClientHttpSender"; | ||
import { MeteorClientMethodSender } from "./Senders/MeteorClientMethodSender"; | ||
import { MongodbSender } from "./Senders/MongodbSender"; | ||
import { TeeSender } from "./Senders/TeeSender"; | ||
|
||
/* modern-syslog is not usable on the client side, because it fails to load | ||
* its compiled binary dependency. | ||
* | ||
* @type {NullSender|SyslogSender} | ||
*/ | ||
const SyslogSender = Meteor.isServer | ||
? require("./Senders/SyslogSender").default | ||
: NullSender; | ||
|
||
export { | ||
InvalidArgumentException, | ||
LogLevel, | ||
|
||
Logger, | ||
ClientLogger, | ||
ServerLogger, | ||
|
||
// ProcessorBase is the "abstract" base class from which to extend custom processors. | ||
ProcessorBase, | ||
BrowserProcessor, | ||
MeteorUserProcessor, | ||
RoutingProcessor, | ||
|
||
// StrategyBase is the "abstract" base class from which to extend custom strategies. | ||
StrategyBase, | ||
LeveledStrategy, | ||
TrivialStrategy, | ||
|
||
// SenderBase is the "abstract" base class from which to extend custom senders. | ||
SenderBase, | ||
NullSender, | ||
ConsoleSender, | ||
MeteorClientHttpSender, | ||
MeteorClientMethodSender, | ||
MongodbSender, | ||
SyslogSender, | ||
TeeSender, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters