@@ -127,7 +127,7 @@ export class Application extends ChildableComponent<
127127 *
128128 * @param options An object containing the options that should be used.
129129 */
130- constructor ( options ?: Partial < TypeDocAndTSOptions > ) {
130+ constructor ( ) {
131131 super ( DUMMY_APPLICATION_OWNER ) ;
132132
133133 this . logger = new ConsoleLogger ( ) ;
@@ -137,24 +137,24 @@ export class Application extends ChildableComponent<
137137 this . converter = this . addComponent < Converter > ( 'converter' , Converter ) ;
138138 this . renderer = this . addComponent < Renderer > ( 'renderer' , Renderer ) ;
139139 this . plugins = this . addComponent ( 'plugins' , PluginHost ) ;
140-
141- this . bootstrap ( options ) ;
142140 }
143141
144142 /**
145143 * Initialize TypeDoc with the given options object.
146144 *
147145 * @param options The desired options to set.
148146 */
149- protected bootstrap ( options : Partial < TypeDocAndTSOptions > = { } ) : { hasErrors : boolean , inputFiles : string [ ] } {
147+ bootstrap ( options : Partial < TypeDocAndTSOptions > = { } ) : { hasErrors : boolean , inputFiles : string [ ] } {
150148 this . options . setValues ( options ) ; // Ignore result, plugins might declare an option
151149 this . options . read ( new Logger ( ) ) ;
152150
153151 const logger = this . loggerType ;
154152 if ( typeof logger === 'function' ) {
155153 this . logger = new CallbackLogger ( < any > logger ) ;
154+ this . options . setLogger ( this . logger ) ;
156155 } else if ( logger === 'none' ) {
157156 this . logger = new Logger ( ) ;
157+ this . options . setLogger ( this . logger ) ;
158158 }
159159
160160 this . plugins . load ( ) ;
0 commit comments