File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,24 @@ function remove(filename) {
15
15
}
16
16
17
17
vows . describe ( 'log4js fileAppender' ) . addBatch ( {
18
+ 'adding multiple fileAppenders' : {
19
+ topic : function ( ) {
20
+ var listenersCount = process . listeners ( 'exit' ) . length
21
+ , logger = log4js . getLogger ( 'default-settings' )
22
+ , count = 5 , logfile ;
23
+
24
+ while ( count -- ) {
25
+ logfile = path . join ( __dirname , '/fa-default-test' + count + '.log' ) ;
26
+ log4js . addAppender ( require ( '../lib/appenders/file' ) . appender ( logfile ) , 'default-settings' ) ;
27
+ }
28
+
29
+ return listenersCount ;
30
+ } ,
31
+
32
+ 'does not adds more than one `exit` listeners' : function ( initialCount ) {
33
+ assert . ok ( process . listeners ( 'exit' ) . length <= initialCount + 1 ) ;
34
+ }
35
+ } ,
18
36
19
37
'with default fileAppender settings' : {
20
38
topic : function ( ) {
You can’t perform that action at this time.
0 commit comments