@@ -671,7 +671,7 @@ func WithAutoHide(state tw.State) Option {
671
671
return func (target * Table ) {
672
672
target .config .Behavior .AutoHide = state
673
673
if target .logger != nil {
674
- target .logger .Debug ("Option: WithAutoHide applied to Table: %v" , state )
674
+ target .logger .Debugf ("Option: WithAutoHide applied to Table: %v" , state )
675
675
}
676
676
}
677
677
}
@@ -684,7 +684,7 @@ func WithBorders(borders tw.Border) Option {
684
684
cfg := target .renderer .Config ()
685
685
cfg .Borders = borders
686
686
if target .logger != nil {
687
- target .logger .Debug ("Option: WithBorders applied to Table: %+v" , borders )
687
+ target .logger .Debugf ("Option: WithBorders applied to Table: %+v" , borders )
688
688
}
689
689
}
690
690
}
@@ -699,7 +699,7 @@ func WithColumnMax(width int) Option {
699
699
}
700
700
target .config .Stream .Widths .Global = width
701
701
if target .logger != nil {
702
- target .logger .Debug ("Option: WithColumnMax applied to Table: %v" , width )
702
+ target .logger .Debugf ("Option: WithColumnMax applied to Table: %v" , width )
703
703
}
704
704
}
705
705
}
@@ -713,7 +713,7 @@ func WithTableMax(width int) Option {
713
713
}
714
714
target .config .MaxWidth = width
715
715
if target .logger != nil {
716
- target .logger .Debug ("Option: WithTableMax applied to Table: %v" , width )
716
+ target .logger .Debugf ("Option: WithTableMax applied to Table: %v" , width )
717
717
}
718
718
}
719
719
}
@@ -729,7 +729,7 @@ func WithColumnWidths(widths map[int]int) Option {
729
729
}
730
730
target .config .Stream .Widths .PerColumn = widths
731
731
if target .logger != nil {
732
- target .logger .Debug ("Option: WithColumnWidths applied to Table: %v" , widths )
732
+ target .logger .Debugf ("Option: WithColumnWidths applied to Table: %v" , widths )
733
733
}
734
734
}
735
735
}
@@ -776,7 +776,7 @@ func WithFooterMergeMode(mergeMode int) Option {
776
776
}
777
777
target .config .Footer .Formatting .MergeMode = mergeMode
778
778
if target .logger != nil {
779
- target .logger .Debug ("Option: WithFooterMergeMode applied to Table: %v" , mergeMode )
779
+ target .logger .Debugf ("Option: WithFooterMergeMode applied to Table: %v" , mergeMode )
780
780
}
781
781
}
782
782
}
@@ -797,7 +797,7 @@ func WithHeaderAlignment(align tw.Align) Option {
797
797
}
798
798
target .config .Header .Formatting .Alignment = align
799
799
if target .logger != nil {
800
- target .logger .Debug ("Option: WithHeaderAlignment applied to Table: %v" , align )
800
+ target .logger .Debugf ("Option: WithHeaderAlignment applied to Table: %v" , align )
801
801
}
802
802
}
803
803
}
@@ -833,7 +833,7 @@ func WithRenderer(f tw.Renderer) Option {
833
833
return func (target * Table ) {
834
834
target .renderer = f
835
835
if target .logger != nil {
836
- target .logger .Debug ("Option: WithRenderer applied to Table: %T" , f )
836
+ target .logger .Debugf ("Option: WithRenderer applied to Table: %T" , f )
837
837
f .Logger (target .logger )
838
838
}
839
839
}
@@ -847,7 +847,7 @@ func WithRendererSettings(settings tw.Settings) Option {
847
847
cfg := target .renderer .Config ()
848
848
cfg .Settings = settings
849
849
if target .logger != nil {
850
- target .logger .Debug ("Option: WithRendererSettings applied to Table: %+v" , settings )
850
+ target .logger .Debugf ("Option: WithRendererSettings applied to Table: %+v" , settings )
851
851
}
852
852
}
853
853
}
@@ -873,7 +873,7 @@ func WithRowMaxWidth(maxWidth int) Option {
873
873
}
874
874
target .config .Row .ColMaxWidths .Global = maxWidth
875
875
if target .logger != nil {
876
- target .logger .Debug ("Option: WithRowMaxWidth applied to Table: %v" , maxWidth )
876
+ target .logger .Debugf ("Option: WithRowMaxWidth applied to Table: %v" , maxWidth )
877
877
}
878
878
}
879
879
}
@@ -928,7 +928,7 @@ func WithTrimSpace(state tw.State) Option {
928
928
return func (target * Table ) {
929
929
target .config .Behavior .TrimSpace = state
930
930
if target .logger != nil {
931
- target .logger .Debug ("Option: WithAutoHide applied to Table: %v" , state )
931
+ target .logger .Debugf ("Option: WithAutoHide applied to Table: %v" , state )
932
932
}
933
933
}
934
934
}
@@ -954,9 +954,9 @@ func WithRendition(rendition tw.Rendition) Option {
954
954
955
955
if ru , ok := target .renderer .(tw.Renditioning ); ok {
956
956
ru .Rendition (rendition )
957
- target .logger .Debug ("Option: WithRendition: Applied to renderer via Renditioning.SetRendition(): %+v" , rendition )
957
+ target .logger .Debugf ("Option: WithRendition: Applied to renderer via Renditioning.SetRendition(): %+v" , rendition )
958
958
} else {
959
- target .logger .Warn ("Option: WithRendition: Current renderer type %T does not implement tw.Renditioning. Rendition may not be applied as expected." , target .renderer )
959
+ target .logger .Warnf ("Option: WithRendition: Current renderer type %T does not implement tw.Renditioning. Rendition may not be applied as expected." , target .renderer )
960
960
}
961
961
}
962
962
}
0 commit comments