@@ -173,6 +173,39 @@ func (gb *Gloomberg) PrMod(mod string, message string) {
173
173
gb .printToTerminal (icon , keyword , message )
174
174
}
175
175
176
+ // PrModf formats and prints messages from gloomberg to the terminal.
177
+ func (gb * Gloomberg ) PrModf (mod string , format string , a ... any ) {
178
+ gb .PrMod (mod , fmt .Sprintf (format , a ... ))
179
+ }
180
+
181
+ // PrVMod prints messages from gloomberg to the terminal if verbose mode is enabled.
182
+ func (gb * Gloomberg ) PrVMod (mod string , message string ) {
183
+ if viper .GetBool ("log.verbose" ) {
184
+ gb .PrMod (mod , message )
185
+ }
186
+ }
187
+
188
+ // PrVModf formats and prints messages from gloomberg to the terminal if verbose mode is enabled.
189
+ func (gb * Gloomberg ) PrVModf (mod string , format string , a ... any ) {
190
+ if viper .GetBool ("log.verbose" ) {
191
+ gb .PrModf (mod , format , a ... )
192
+ }
193
+ }
194
+
195
+ // PrDMod prints messages from gloomberg to the terminal if debug mode is enabled.
196
+ func (gb * Gloomberg ) PrDMod (mod string , message string ) {
197
+ if viper .GetBool ("log.debug" ) {
198
+ gb .PrMod (mod , message )
199
+ }
200
+ }
201
+
202
+ // PrDModf formats and prints messages from gloomberg to the terminal if debug mode is enabled.
203
+ func (gb * Gloomberg ) PrDModf (mod string , format string , a ... any ) {
204
+ if viper .GetBool ("log.debug" ) {
205
+ gb .PrModf (mod , format , a ... )
206
+ }
207
+ }
208
+
176
209
func (gb * Gloomberg ) printToTerminal (icon string , keyword string , message string ) {
177
210
if message == "" {
178
211
return
0 commit comments